We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41fcc9e commit 21a380aCopy full SHA for 21a380a
addons/qodot/src/nodes/qodot_map.gd
@@ -429,7 +429,10 @@ func build_entity_nodes() -> Array:
429
node = ClassDB.instance(entity_definition.node_class)
430
elif entity_definition is QodotFGDPointClass:
431
if entity_definition.scene_file:
432
- node = entity_definition.scene_file.instance(PackedScene.GEN_EDIT_STATE_INSTANCE)
+ var flag = PackedScene.GEN_EDIT_STATE_DISABLED
433
+ if Engine.is_editor_hint():
434
+ flag = PackedScene.GEN_EDIT_STATE_INSTANCE
435
+ node = entity_definition.scene_file.instance(flag)
436
437
if entity_definition.script_class:
438
node.set_script(entity_definition.script_class)
0 commit comments