Skip to content

Commit fe31ede

Browse files
committed
Merge pull request #95034 from KoBeWi/take_a_problem_and_make_it_worse._solved
Close expanded tile editor when inspector updates
2 parents aa40773 + e2c0346 commit fe31ede

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

editor/plugins/tiles/tile_data_editors.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,11 @@ void GenericTilePolygonEditor::_notification(int p_what) {
874874
button_expand->set_pressed_no_signal(false);
875875
}
876876
} break;
877+
878+
case NOTIFICATION_READY: {
879+
get_parent()->connect(SceneStringName(tree_exited), callable_mp(TileSetEditor::get_singleton(), &TileSetEditor::remove_expanded_editor));
880+
} break;
881+
877882
case NOTIFICATION_THEME_CHANGED: {
878883
button_expand->set_icon(get_editor_theme_icon(SNAME("DistractionFree")));
879884
button_create->set_icon(get_editor_theme_icon(SNAME("CurveCreate")));

0 commit comments

Comments
 (0)