Merge pull request #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
This commit is contained in:
commit
1a51637732
1 changed files with 2 additions and 0 deletions
|
@ -4011,6 +4011,8 @@ void CanvasItemEditor::_project_settings_changed() {
|
|||
void CanvasItemEditor::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_READY: {
|
||||
_update_lock_and_group_button();
|
||||
|
||||
EditorRunBar::get_singleton()->connect("play_pressed", callable_mp(this, &CanvasItemEditor::_update_override_camera_button).bind(true));
|
||||
EditorRunBar::get_singleton()->connect("stop_pressed", callable_mp(this, &CanvasItemEditor::_update_override_camera_button).bind(false));
|
||||
ProjectSettings::get_singleton()->connect("settings_changed", callable_mp(this, &CanvasItemEditor::_project_settings_changed));
|
||||
|
|
Loading…
Reference in a new issue