-
-
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
[3.x] AnimatedSprite Fix updating inspector when SpriteFrames is modified #49495
[3.x] AnimatedSprite Fix updating inspector when SpriteFrames is modified #49495
Conversation
I checked the issues. One is valid on both branches and one only in 3.x
I think the reason for this was that when you create new animation and put some sprites, you can preview it immediately. |
Hmm, I think I've listed 3 issues (4 if counting the duplicated one):
so it's kinda hard to tell what have you found out. 😄 So please try being more specific. Also thanks for checking it out!
For me it looks like it was just an unintended side effect of #27254. But yeah, I can see how it might be a desired behavior for some people and that's why I've asked which behavior is the desired one / should current behavior be preserved. |
71cb8d3
to
c58391c
Compare
298bc38
to
8ae246f
Compare
@akien-mga Rebased, applied suggestion. Added some more comments and changed this (part of the PR description):
|
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.
Should be good to merge after 3.5 is released.
Thanks! |
Cherry-picked for 3.5.1. |
(needs a separate
master
version due to #45879; for the same reason some issues fixed here might already be non-existent in themaster
; haven't checked none of these)Makes creating / renaming / deleting animations in the
SpriteFramesEditorPlugin
properly update properties of theAnimatedSprite
in the inspector (mainly options in the animation dropdown). Removing current animation of theAnimatedSprite
will make the first (after removal) animation left be selected as the new current animation (if no animation would be left then nothing will be done from the inspector point of view).Reverts #27254 but keeps #26381 being fixed.
Fixes #44438.
Fixes #46741.
Fixes #28658, fixes #40263 (these look like duplicates).
Removes unused
SpriteFrames::_get_animation_list()
method.After reverting #27254 newly created animation is no longer automatically set as the current animation of theAnimatedSprite
/AnimatedSprite3D
being edited. Should the current behavior be preserved (assigning it automatically)?I've changed it so currently the newly created animation is automatically set as the current animation of the anim sprite being edited (same as before), and the same for all other anim sprites having currently invalid animation set (same as before). But valid animations of other anim sprites will no longer be automatically changed (as they used to be).