mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Merge pull request #95034 from KoBeWi/take_a_problem_and_make_it_worse._solved
Close expanded tile editor when inspector updates
This commit is contained in:
commit
fe31ede42d
1 changed files with 5 additions and 0 deletions
|
|
@ -874,6 +874,11 @@ void GenericTilePolygonEditor::_notification(int p_what) {
|
||||||
button_expand->set_pressed_no_signal(false);
|
button_expand->set_pressed_no_signal(false);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
case NOTIFICATION_READY: {
|
||||||
|
get_parent()->connect(SceneStringName(tree_exited), callable_mp(TileSetEditor::get_singleton(), &TileSetEditor::remove_expanded_editor));
|
||||||
|
} break;
|
||||||
|
|
||||||
case NOTIFICATION_THEME_CHANGED: {
|
case NOTIFICATION_THEME_CHANGED: {
|
||||||
button_expand->set_icon(get_editor_theme_icon(SNAME("DistractionFree")));
|
button_expand->set_icon(get_editor_theme_icon(SNAME("DistractionFree")));
|
||||||
button_create->set_icon(get_editor_theme_icon(SNAME("CurveCreate")));
|
button_create->set_icon(get_editor_theme_icon(SNAME("CurveCreate")));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue