Disallow setting editor-only metadata in the editor
This commit is contained in:
parent
71e41eb395
commit
8e8e457dd9
1 changed files with 2 additions and 0 deletions
|
@ -3723,6 +3723,8 @@ void EditorInspector::_check_meta_name(String name) {
|
|||
error = TTR("Invalid metadata identifier.");
|
||||
} else if (object->has_meta(name)) {
|
||||
error = TTR("Metadata already exists.");
|
||||
} else if (name[0] == '_') {
|
||||
error = TTR("Names starting with _ are reserved for editor-only metadata.");
|
||||
}
|
||||
|
||||
if (error != "") {
|
||||
|
|
Loading…
Reference in a new issue