-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Fix Skeleton2D.{_set|_get}
always returning true
#95124
Fix Skeleton2D.{_set|_get}
always returning true
#95124
Conversation
Mentioned them in #84054 but left them because I wasn't sure of the exact correct cases and didn't get any feedback on either PR for the correct approach so didn't touch them |
While we're here I feel the |
Yeah, looking at the Skeleton 3D has a similar wrong return (it actually works correctly, but the code is awkward). |
There's the same problem in Bone2D (same file/author): godot/scene/2d/skeleton_2d.cpp Lines 41 to 99 in 3978628
So for exact properties it can be changed to
I don't see a "wrong return" there. Unless you mean that it doesn't end with godot/scene/3d/skeleton_3d.cpp Lines 71 to 82 in 3978628
godot/scene/3d/skeleton_3d.cpp Lines 141 to 152 in 3978628
|
If they check full name,
Yes, it's an unreachable code too. The else should be replaced with proper return. |
5be02d8
to
115cd47
Compare
I don't see any unreachable code in there so still not sure what you mean. 🙃 Anyway, I've pushed mentioned changes. |
This comment was marked as resolved.
This comment was marked as resolved.
Not unreachable, it the other if statements don't return so they join in that: else if (what == "scale") {
set_bone_pose_scale(which, p_value); |
Thanks! |
Cherry-picked for 4.3.1. |
Fixes #95117.
Follow-up to #84060.
(@AThousandShips this was simply overlooked? 🤔)
(not sure what
topic
this should be labelled as)