summaryrefslogtreecommitdiffstats
path: root/core/object.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-06-15 09:30:04 +0200
committerGitHub <noreply@github.com>2020-06-15 09:30:04 +0200
commit152bb86141b1427524df73f9ed3f273a4b76bb8f (patch)
treeba5e0515393022776d04bdca2ca53bd5d5b656d6 /core/object.h
parentfdc8b969755f3a4658801a2ebe2c1d975427527e (diff)
parentb3bc5aafc5dbe6559534bb1e19093e719afbf52c (diff)
downloadredot-engine-152bb86141b1427524df73f9ed3f273a4b76bb8f.tar.gz
Merge pull request #39479 from akien-mga/classdb-default-property-unique
Object: Add usage hint to instantiate Object properties in editor
Diffstat (limited to 'core/object.h')
-rw-r--r--core/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/object.h b/core/object.h
index 95662f6208..5b46a0f93a 100644
--- a/core/object.h
+++ b/core/object.h
@@ -124,6 +124,7 @@ enum PropertyUsageFlags {
PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT = 1 << 24,
PROPERTY_USAGE_KEYING_INCREMENTS = 1 << 25, // Used in inspector to increment property when keyed in animation player
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_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,