Page MenuHome

RigidBodies: Clarify usage of the custom density in the calculate mass operator
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on May 10 2021, 10:43 AM.

Details

Summary

This is only used when the preset is set to 'Custom', make that clear in
the tooltip and disable editing the value if a preset is used.

Issue came up in T88155.

Diff Detail

Repository
rB Blender

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.May 10 2021, 10:43 AM
Philipp Oeser (lichtwerk) created this revision.

Hmm, I would actually disable (grey out) the density input field when "Custom" is not selected.
You can see how I did this for the quadriflow remesh menus:
blender/editors/object/object_remesh.c: quadriflow_poll_property

In that example, if the operator is not in "face mode" the face count input box is greyed out and can't have its values changed.
But the number of faces it will create is still updated and displayed.

I would think the same thing should happen here but with the density field.

disable editing density if a preset is used

This revision is now accepted and ready to land.May 14 2021, 5:33 PM