diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-02-28 20:28:01 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-02-28 20:30:30 +0400 |
commit | 32c18276ef4e3b4035d03f459399f87517798c4e (patch) | |
tree | d31e3218d9711850290ea8bb63e43af9a9dc715c | |
parent | a32588b174734a0ccf2b4d2b8ac8632f70401c7a (diff) |
Fix T38881: cloth preset rubber not working with "translated data names" i18n option
Actually, was broken for any custom modifier name, since it was explicitly using 'Cloth' one. Changed to mimic other cloth pressets (wonder why this one was different!).
-rw-r--r-- | release/scripts/presets/cloth/rubber.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/release/scripts/presets/cloth/rubber.py b/release/scripts/presets/cloth/rubber.py index c2d7625d333..cb354168daa 100644 --- a/release/scripts/presets/cloth/rubber.py +++ b/release/scripts/presets/cloth/rubber.py @@ -1,7 +1,7 @@ import bpy -bpy.context.active_object.modifiers['Cloth'].settings.quality = 7 -bpy.context.active_object.modifiers['Cloth'].settings.mass = 3 -bpy.context.active_object.modifiers['Cloth'].settings.structural_stiffness = 15 -bpy.context.active_object.modifiers['Cloth'].settings.bending_stiffness = 25 -bpy.context.active_object.modifiers['Cloth'].settings.spring_damping = 25 -bpy.context.active_object.modifiers['Cloth'].settings.air_damping = 1 +bpy.context.cloth.settings.quality = 7 +bpy.context.cloth.settings.mass = 3 +bpy.context.cloth.settings.structural_stiffness = 15 +bpy.context.cloth.settings.bending_stiffness = 25 +bpy.context.cloth.settings.spring_damping = 25 +bpy.context.cloth.settings.air_damping = 1 |