You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
ProjectSettings: Disallow adding properties without name.
(cherry picked from commit d664d6e634)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
77ee4ced30
commit
845f44b976
@@ -750,7 +750,16 @@ void ProjectSettingsEditor::_item_add() {
|
||||
|
||||
String catname = category->get_text().strip_edges();
|
||||
String propname = property->get_text().strip_edges();
|
||||
String name = catname != "" ? catname + "/" + propname : propname;
|
||||
|
||||
if (propname.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (catname.empty()) {
|
||||
catname = "global";
|
||||
}
|
||||
|
||||
String name = catname + "/" + propname;
|
||||
|
||||
undo_redo->create_action(TTR("Add Global Property"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user