Skip to content
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

Show revert button for MeshInstance3D blendshape values #82984

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

smix8
Copy link
Contributor

@smix8 smix8 commented Oct 7, 2023

Shows revert button for MeshInstance3D blendshape values.

revert_blendshapes

... because having to enter 0.0 manually all the time because the slider steps make it impossible to hit zero needs to stop.

@smix8 smix8 requested a review from a team as a code owner October 7, 2023 23:23
@smix8 smix8 added this to the 4.x milestone Oct 7, 2023
@smix8 smix8 modified the milestones: 4.x, 4.3 Nov 30, 2023
Shows revert button for MeshInstance3D blendshape values.
Comment on lines +497 to +501
HashMap<StringName, int>::ConstIterator E = blend_shape_properties.find(p_name);
if (E) {
return true;
}
return false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be sure, can you confirm that this doesn't break the revertability of other, non blend shape properties of MeshInstance3D?

Copy link
Contributor Author

@smix8 smix8 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that I can still revert all the Node3D/GeometryInstance3D inspector properties that seem to be the only class in the inherit chain that uses the same functions. Everything else about that function shenanigan and how it does its thing under the hood no idea, I am just monkey-copy-pasting from other nodes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false means fallback to default behavior, like with other similar methods.

Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks fine, but not sure how to test it.

@akien-mga akien-mga merged commit 150f002 into godotengine:master Feb 22, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@smix8 smix8 deleted the revert_blendshapes_4.x branch February 28, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants