diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-10-04 22:43:02 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-10-04 22:43:02 +0200 |
commit | fe31ede42d3fc63bc61aa6cf6ea9ce6185bda70a (patch) | |
tree | 2fc4f40554ef3f51e0ddb5afa46834d52b8d8b91 /editor/plugins/tiles | |
parent | aa4077338bfaeeb47e2722891c80636a25d43ada (diff) | |
parent | e2c03469fb944d5d2489acc14714104ad3166bce (diff) | |
download | redot-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.cpp | 5 |
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"))); |