Skip to content

Commit

Permalink
refs #37: Fixed a warning related to EditorInterface being a singleto…
Browse files Browse the repository at this point in the history
…n in 4.2.
  • Loading branch information
stickgrinder committed Dec 18, 2023
1 parent 3e12784 commit 8d5fe71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions addons/popochiu/editor/factories/factory_base_popochiu_obj.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -46,7 +45,6 @@ var _script: Resource
# ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ VIRTUAL ░░░░
func _init(main_dock: Panel) -> void:
_main_dock = main_dock
_ei = _main_dock.ei


# ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ SET & GET ░░░░
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8d5fe71

Please sign in to comment.