Disallow setting editor-only metadata in the editor

This commit is contained in:
RechieKho 2022-04-07 09:53:12 +08:00 committed by Rémi Verschelde
parent 71e41eb395
commit 8e8e457dd9

View file

@ -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 != "") {