Browse Source

Merge pull request #78403 from AThousandShips/create_size_fix

[4.0] Fix saving size in `CreateDialog`
Rémi Verschelde 2 năm trước cách đây
mục cha
commit
4eefe8a40e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/create_dialog.cpp

+ 1 - 1
editor/create_dialog.cpp

@@ -457,7 +457,7 @@ void CreateDialog::_notification(int p_what) {
 				search_box->call_deferred(SNAME("grab_focus")); // still not visible
 				search_box->select_all();
 			} else {
-				EditorSettings::get_singleton()->get_project_metadata("dialog_bounds", "create_new_node", Rect2(get_position(), get_size()));
+				EditorSettings::get_singleton()->set_project_metadata("dialog_bounds", "create_new_node", Rect2(get_position(), get_size()));
 			}
 		} break;