-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.x] Add PROPERTY_USAGE_ALWAYS_SHARE_ON_DUPLICATE flag #41924
base: 3.x
Are you sure you want to change the base?
Conversation
fd7243a
to
0ee4142
Compare
core/object.h
Outdated
PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT = 1 << 23, | ||
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_ALWAYS_SHARE_ON_DUPLICATE = 1 << 22, // If the object is duplicated this property will never be duplicated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For 3.2 it probably should be added to the end of the enum, to avoid breaking compatibility with existing GDNative libraries.
And it should be added to the NativeScript enum in the https://github.com/godotengine/godot/blob/master/modules/gdnative/include/nativescript/godot_nativescript.h#L87 (relevant for both this and #41923).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a lot of missing enums in NativeScript (PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE and others are missed). I guess all of them should be added in a separate commit.
Contributed by Funexpected.
0ee4142
to
a6c2880
Compare
71cb8d3
to
c58391c
Compare
This adds
PROPERTY_USAGE_ALWAYS_SHARE_ON_DUPLICATE
flag for 3.2 branch (master #41923). With this PR,Resource.duplicate
will not duplicateObject.script
property. Fixes #33079.