Simple deform modifier: replace factor property by angle for twist and bend
modes, so we can show degrees rather than radians. Still refers to the same DNA variable to keep backwards compatibility. Patch #33807 by Gottfried Hofmann.
This commit is contained in:
@@ -715,7 +715,10 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
|
||||
col = split.column()
|
||||
col.label(text="Deform:")
|
||||
col.prop(md, "factor")
|
||||
if md.deform_method in {'TAPER', 'STRETCH'}:
|
||||
col.prop(md, "factor")
|
||||
else:
|
||||
col.prop(md, "angle")
|
||||
col.prop(md, "limits", slider=True)
|
||||
if md.deform_method in {'TAPER', 'STRETCH', 'TWIST'}:
|
||||
col.prop(md, "lock_x")
|
||||
|
||||
Reference in New Issue
Block a user