-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Duplicate Arrays and Dictionaries when instancing scene in editor #17382
Conversation
The second commit would probably be better in its own PR to be merged quickly while the other change needs stricter review? Also I can already see users asking for Array and Dictionary deep copy to be exposed to scripting langs. :) |
Wait, just realized I forgot to expose the deep parameter 😆 |
Also, add deep (=false) parameter to Array.duplicate and Dictionary.duplicate Fixes godotengine#13971
25fbbc6
to
9f6c0c6
Compare
@@ -35,8 +35,8 @@ | |||
#include "variant.h" | |||
#include "vector.h" | |||
|
|||
struct ArrayPrivate { | |||
|
|||
class ArrayPrivate { |
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.
Why? In C++ a Class with only public members is perfectly equivalent to a struct in every way.
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.
Clang complains otherwise.
Fixes #13971.