Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-03-05 18:42:06 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-03-05 18:42:06 +0400
commit65377714103259f0629ebfa8124a78364a997745 (patch)
treef0afdbbbe44e778e0fe97ea7b91cc0203cc0e6d9 /release/scripts/startup
parenta31c0bcc648820d78f1265c116bece378c841561 (diff)
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.
Diffstat (limited to 'release/scripts/startup')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_modifier.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py
index 05e189c86be..66db1352032 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -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")