Modifiers: Corrective Smooth modifier, new Scale parameter

When scaling the root bone of a rig to apply a global scale, the
corrective smooth modifier results in wrong deformation due to incorrect
scaling. The delta calculations are not taking into account any scale
value.

To fix it, a scale property is added to the modifier, allowing to set
manually the scale value for the deltas by simply multiplying the
vectors by this value. There is a similar implementation in Maya's Delta
Mush deformer. This property can be for example driven by the scale of
the root bone of the rig, to dynamically update when the animator scale
this bone.

Reviewed By: brecht, sybren

Differential Revision: https://developer.blender.org/D6622
This commit is contained in:
Lucas Veber
2020-03-10 12:47:43 +01:00
committed by Sybren A. Stüvel
parent 982b498c22
commit 915998111b
5 changed files with 27 additions and 7 deletions

View File

@@ -1677,7 +1677,7 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
layout.prop(md, "factor", text="Factor")
layout.prop(md, "iterations")
layout.prop(md, "scale")
row = layout.row()
row.prop(md, "smooth_type")