Skip to content

Commit

Permalink
deselect instance when undo
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed Apr 20, 2024
1 parent cdbcc9b commit eb7891f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 0 additions & 1 deletion Scenes/Inspector.gd
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@ func deselect():
oSelectionStatus.visible = false
yield(get_tree(),'idle_frame')
oThingDetails.update_details()

14 changes: 12 additions & 2 deletions Scenes/OpenMap.gd
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ onready var oSetNewFormat = Nodelist.list["oSetNewFormat"]
onready var oBuffers = Nodelist.list["oBuffers"]
onready var oUndoStates = Nodelist.list["oUndoStates"]
onready var oDisplaySlxNumbers = Nodelist.list["oDisplaySlxNumbers"]
onready var oThingDetails = Nodelist.list["oThingDetails"]
onready var oInspector = Nodelist.list["oInspector"]

var TOTAL_TIME_TO_OPEN_MAP

Expand Down Expand Up @@ -199,7 +201,6 @@ func load_cfg_stuff(map):

func continue_load(map):
# initialize_editor_components
oDisplaySlxNumbers.update()
oPickThingWindow.initialize_thing_grid_items()
oEditor.update_boundaries()
oScriptEditor.initialize_for_new_map()
Expand All @@ -215,7 +216,7 @@ func continue_load(map):
oDataClm.count_filled_clm_entries()

oTextureCache.set_current_texture_pack()

# finalize_map_opening
oEditor.set_view_2d()

Expand All @@ -231,12 +232,21 @@ func continue_load(map):

oDataClm.store_default_data()


# Update for Undo

oDisplaySlxNumbers.update()

oMapSettingsWindow.visible = false


if oColumnEditor.visible == true:
oColumnEditor.visible = false
Utils.popup_centered(oColumnEditor)

if is_instance_valid(oInspector.inspectingInstance):
oInspector.deselect()


func continue_load_openmap(map):
oEditor.mapHasBeenEdited = false
Expand Down

0 comments on commit eb7891f

Please sign in to comment.