diff --git a/addons/dialogic/Editor/editors_manager.gd b/addons/dialogic/Editor/editors_manager.gd index f97d59b2b..cbd575da6 100644 --- a/addons/dialogic/Editor/editors_manager.gd +++ b/addons/dialogic/Editor/editors_manager.gd @@ -65,7 +65,7 @@ func _ready() -> void: find_parent('EditorView').plugin_reference.get_editor_interface().get_file_system_dock().files_moved.connect(_on_file_moved) find_parent('EditorView').plugin_reference.get_editor_interface().get_file_system_dock().file_removed.connect(_on_file_removed) - + hsplit.set("theme_override_constants/separation", get_theme_constant("base_margin", "Editor") * DialogicUtil.get_editor_scale()) @@ -209,7 +209,8 @@ func _on_add_resource_dialog_accepted(path:String, callable:Callable) -> void: ## Called by the plugin.gd script on CTRL+S or Debug Game start func save_current_resource() -> void: - current_editor._save() + if current_editor: + current_editor._save() ## Change the resource state