Skip to content

Commit 1a51637

Browse files
committed
Merge pull request godotengine#96681 from Giganzo/lock-group-double-buttons
Fix 2D editor view showing both lock/unlock, group/ungroup buttons when starting a saved project with empty scene
2 parents 5303688 + 96aa2f2 commit 1a51637

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

editor/plugins/canvas_item_editor_plugin.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4011,6 +4011,8 @@ void CanvasItemEditor::_project_settings_changed() {
40114011
void CanvasItemEditor::_notification(int p_what) {
40124012
switch (p_what) {
40134013
case NOTIFICATION_READY: {
4014+
_update_lock_and_group_button();
4015+
40144016
EditorRunBar::get_singleton()->connect("play_pressed", callable_mp(this, &CanvasItemEditor::_update_override_camera_button).bind(true));
40154017
EditorRunBar::get_singleton()->connect("stop_pressed", callable_mp(this, &CanvasItemEditor::_update_override_camera_button).bind(false));
40164018
ProjectSettings::get_singleton()->connect("settings_changed", callable_mp(this, &CanvasItemEditor::_project_settings_changed));

0 commit comments

Comments
 (0)