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:
2013-03-05 14:42:06 +00:00
parent a31c0bcc64
commit 6537771410
2 changed files with 12 additions and 2 deletions

View File

@@ -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")