summaryrefslogtreecommitdiffstats
path: root/editor/plugins/tiles
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-10-04 22:43:02 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-10-04 22:43:02 +0200
commitfe31ede42d3fc63bc61aa6cf6ea9ce6185bda70a (patch)
tree2fc4f40554ef3f51e0ddb5afa46834d52b8d8b91 /editor/plugins/tiles
parentaa4077338bfaeeb47e2722891c80636a25d43ada (diff)
parente2c03469fb944d5d2489acc14714104ad3166bce (diff)
downloadredot-engine-fe31ede42d3fc63bc61aa6cf6ea9ce6185bda70a.tar.gz
Merge pull request #95034 from KoBeWi/take_a_problem_and_make_it_worse._solved
Close expanded tile editor when inspector updates
Diffstat (limited to 'editor/plugins/tiles')
-rw-r--r--editor/plugins/tiles/tile_data_editors.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/plugins/tiles/tile_data_editors.cpp b/editor/plugins/tiles/tile_data_editors.cpp
index 12b9761fd2..c6921699a4 100644
--- a/editor/plugins/tiles/tile_data_editors.cpp
+++ b/editor/plugins/tiles/tile_data_editors.cpp
@@ -874,6 +874,11 @@ void GenericTilePolygonEditor::_notification(int p_what) {
button_expand->set_pressed_no_signal(false);
}
} break;
+
+ case NOTIFICATION_READY: {
+ get_parent()->connect(SceneStringName(tree_exited), callable_mp(TileSetEditor::get_singleton(), &TileSetEditor::remove_expanded_editor));
+ } break;
+
case NOTIFICATION_THEME_CHANGED: {
button_expand->set_icon(get_editor_theme_icon(SNAME("DistractionFree")));
button_create->set_icon(get_editor_theme_icon(SNAME("CurveCreate")));