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!).
This commit is contained in:
Bastien Montagne 2014-02-28 17:28:01 +01:00
parent a32588b174
commit 32c18276ef
Notes: blender-bot 2023-02-14 11:06:14 +01:00
Referenced by issue #38881, cloth preset rubber
1 changed files with 6 additions and 6 deletions

View File

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