summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-05-05 18:41:56 +0200
committerGitHub <noreply@github.com>2022-05-05 18:41:56 +0200
commitf74e61fa54520dc092cb12bc35bccccfbeab74cf (patch)
treed4e708222a879cbc9f4ced69d56de0e76250dffc /editor
parent0ae2ba0862b61b73b734a686da376c8c05871b3b (diff)
parent8e8e457dd98e656c412544b3e5eefa6ca5c1a715 (diff)
Merge pull request #59969 from RechieKho/master
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_inspector.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index 076e5e3731..5db1ef4b2b 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -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 != "") {