-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Allow Arrays and Dictionaries to be duplicated or made anew via the inspector #15368
Conversation
@bojidar-bg Any idea with #13346 ? |
I tested the PR and I'm sorry to say, but I'm still able to observe the issue |
Oh I probably misunderstood how the fix works. I assume I should choose 'new array' after creating the scene, in such case it works fine! |
But I don't quite understand use-case for those options, are there any cases when I will not want for my array to be separate from the one that is possessed by parent? (pre 3.0 they were automatically cloned I assume) |
@Geequlim No, that other issue appears unrelated to the one solved. I don't know how it should be solved. |
Is there any way to detect if the array is separated or not? I assume the best work-flow would be to duplicate the array automatically at the time of the first modification since no other inspector element need that kind of additional action. Also as far as I understand it's impossible for user to tell if the array is already 'independent' from parent scene or not (so it's hard to tell when it should be duplicated). |
Well, I tried to think of some simple way, but couldn't. Maybe for 3.1. |
After discussion on IRC, it was decided that we can make a more proper workaround.
I will open another PR when I implement it, but it is likely to land post-3.0. |
Closes #13971
I couldn't make the "Changes may be lost" button appearing when the Array comes from another scene though.