summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2021-09-05 18:58:02 +0200
committerGitHub <noreply@github.com>2021-09-05 18:58:02 +0200
commitc6f6c05a521c407870cfa3a979044fdc0e483ff0 (patch)
tree836017c64a66fe65d7dd364aa45a92f09d33890a /core
parentf3ab0941335d373ce44317961af7fbc864ea5759 (diff)
parentfacf8f1883bad95c7617df8abfbc1039feafeda8 (diff)
Merge pull request #51722 from TokageItLab/implement-set-read-only-in-extended-class
Apply `set_read_only()` to child classes of `EditorProperty` elements
Diffstat (limited to 'core')
-rw-r--r--core/object/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/object/object.h b/core/object/object.h
index 102776a589..1838e7eb3d 100644
--- a/core/object/object.h
+++ b/core/object/object.h
@@ -132,6 +132,7 @@ enum PropertyUsageFlags {
PROPERTY_USAGE_DEFERRED_SET_RESOURCE = 1 << 26, // when loading, the resource for this property can be set at the end of loading
PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT = 1 << 27, // For Object properties, instantiate them when creating in editor.
PROPERTY_USAGE_EDITOR_BASIC_SETTING = 1 << 28, //for project or editor settings, show when basic settings are selected
+ PROPERTY_USAGE_READ_ONLY = 1 << 29,
PROPERTY_USAGE_DEFAULT = PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_EDITOR | PROPERTY_USAGE_NETWORK,
PROPERTY_USAGE_DEFAULT_INTL = PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_EDITOR | PROPERTY_USAGE_NETWORK | PROPERTY_USAGE_INTERNATIONALIZED,