From 8d5fe7131ffc344306a5a38b23530aed6528ffb6 Mon Sep 17 00:00:00 2001 From: Paolo Pustorino Date: Mon, 18 Dec 2023 22:56:40 +0100 Subject: [PATCH] refs #37: Fixed a warning related to EditorInterface being a singleton in 4.2. --- addons/popochiu/editor/factories/factory_base_popochiu_obj.gd | 2 -- .../popochiu/editor/factories/factory_base_popochiu_room_obj.gd | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/popochiu/editor/factories/factory_base_popochiu_obj.gd b/addons/popochiu/editor/factories/factory_base_popochiu_obj.gd index ad04c816..42502e83 100644 --- a/addons/popochiu/editor/factories/factory_base_popochiu_obj.gd +++ b/addons/popochiu/editor/factories/factory_base_popochiu_obj.gd @@ -10,7 +10,6 @@ const MainDock := preload('res://addons/popochiu/editor/main_dock/popochiu_dock. const PopochiuObjectRow := preload('res://addons/popochiu/editor/main_dock/object_row/popochiu_object_row.gd') var _main_dock: Panel = null -var _ei: EditorInterface # The following variables are setup on creation # Names variants and name parameter passed to @@ -46,7 +45,6 @@ var _script: Resource # ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ VIRTUAL ░░░░ func _init(main_dock: Panel) -> void: _main_dock = main_dock - _ei = _main_dock.ei # ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ SET & GET ░░░░ diff --git a/addons/popochiu/editor/factories/factory_base_popochiu_room_obj.gd b/addons/popochiu/editor/factories/factory_base_popochiu_room_obj.gd index ae84e7ea..ce5be489 100644 --- a/addons/popochiu/editor/factories/factory_base_popochiu_room_obj.gd +++ b/addons/popochiu/editor/factories/factory_base_popochiu_room_obj.gd @@ -55,7 +55,7 @@ func _add_resource_to_room() -> void: ) / 2.0 # Save the room scene (it's open in the editor) - _ei.save_scene() + EditorInterface.save_scene() # Update the correct list in the Room tab (_room_tab as TabRoom).add_to_list(