Skip to content

Commit 96aa2f2

Browse files
committed
Fix double lock/group buttons when starting editor with empty scene
1 parent 5675c76 commit 96aa2f2

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)