diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-12-03 19:45:17 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-12-03 19:46:39 +0300 |
commit | 4b8b3692188bcbc71d2af7eccd891d679cfeab83 (patch) | |
tree | d65b6f936a23b0ea4df9e9e7ce8493bc79f3ebf4 /release/scripts/presets | |
parent | 65779b022dc14e4dff107e925817968fc93570f1 (diff) |
Fix T58448: Cloth presets fails to load due to missing attribute structural_stiffness.
Presets were not updated when parameter were changed in rBe3d31b8dfbdc.
Note that will also check on generating more resistent py code for that
kind of presets, since that will also affect any custom preset made by
users...
Diffstat (limited to 'release/scripts/presets')
-rw-r--r-- | release/scripts/presets/cloth/cotton.py | 8 | ||||
-rw-r--r-- | release/scripts/presets/cloth/denim.py | 8 | ||||
-rw-r--r-- | release/scripts/presets/cloth/leather.py | 8 | ||||
-rw-r--r-- | release/scripts/presets/cloth/rubber.py | 8 | ||||
-rw-r--r-- | release/scripts/presets/cloth/silk.py | 8 |
5 files changed, 30 insertions, 10 deletions
diff --git a/release/scripts/presets/cloth/cotton.py b/release/scripts/presets/cloth/cotton.py index 695050cf195..9e766416a75 100644 --- a/release/scripts/presets/cloth/cotton.py +++ b/release/scripts/presets/cloth/cotton.py @@ -1,7 +1,11 @@ import bpy bpy.context.cloth.settings.quality = 5 bpy.context.cloth.settings.mass = 0.300 -bpy.context.cloth.settings.structural_stiffness = 15.000 +bpy.context.cloth.settings.tension_stiffness = 15 +bpy.context.cloth.settings.compression_stiffness = 15 +bpy.context.cloth.settings.shear_stiffness = 15 bpy.context.cloth.settings.bending_stiffness = 0.500 -bpy.context.cloth.settings.spring_damping = 5.000 +bpy.context.cloth.settings.tension_damping = 5 +bpy.context.cloth.settings.compression_damping = 5 +bpy.context.cloth.settings.shear_damping = 5 bpy.context.cloth.settings.air_damping = 1.000 diff --git a/release/scripts/presets/cloth/denim.py b/release/scripts/presets/cloth/denim.py index bd72fa873da..7abf4469709 100644 --- a/release/scripts/presets/cloth/denim.py +++ b/release/scripts/presets/cloth/denim.py @@ -1,7 +1,11 @@ import bpy bpy.context.cloth.settings.quality = 12 bpy.context.cloth.settings.mass = 1 -bpy.context.cloth.settings.structural_stiffness = 40 +bpy.context.cloth.settings.tension_stiffness = 40 +bpy.context.cloth.settings.compression_stiffness = 40 +bpy.context.cloth.settings.shear_stiffness = 40 bpy.context.cloth.settings.bending_stiffness = 10 -bpy.context.cloth.settings.spring_damping = 25 +bpy.context.cloth.settings.tension_damping = 25 +bpy.context.cloth.settings.compression_damping = 25 +bpy.context.cloth.settings.shear_damping = 25 bpy.context.cloth.settings.air_damping = 1 diff --git a/release/scripts/presets/cloth/leather.py b/release/scripts/presets/cloth/leather.py index b85f504b0bb..8ba9ff7dabe 100644 --- a/release/scripts/presets/cloth/leather.py +++ b/release/scripts/presets/cloth/leather.py @@ -1,7 +1,11 @@ import bpy bpy.context.cloth.settings.quality = 15 bpy.context.cloth.settings.mass = 0.4 -bpy.context.cloth.settings.structural_stiffness = 80 +bpy.context.cloth.settings.tension_stiffness = 80 +bpy.context.cloth.settings.compression_stiffness = 80 +bpy.context.cloth.settings.shear_stiffness = 80 bpy.context.cloth.settings.bending_stiffness = 150 -bpy.context.cloth.settings.spring_damping = 25 +bpy.context.cloth.settings.tension_damping = 25 +bpy.context.cloth.settings.compression_damping = 25 +bpy.context.cloth.settings.shear_damping = 25 bpy.context.cloth.settings.air_damping = 1 diff --git a/release/scripts/presets/cloth/rubber.py b/release/scripts/presets/cloth/rubber.py index cb354168daa..0d791fab2a9 100644 --- a/release/scripts/presets/cloth/rubber.py +++ b/release/scripts/presets/cloth/rubber.py @@ -1,7 +1,11 @@ import bpy bpy.context.cloth.settings.quality = 7 bpy.context.cloth.settings.mass = 3 -bpy.context.cloth.settings.structural_stiffness = 15 +bpy.context.cloth.settings.tension_stiffness = 15 +bpy.context.cloth.settings.compression_stiffness = 15 +bpy.context.cloth.settings.shear_stiffness = 15 bpy.context.cloth.settings.bending_stiffness = 25 -bpy.context.cloth.settings.spring_damping = 25 +bpy.context.cloth.settings.tension_damping = 25 +bpy.context.cloth.settings.compression_damping = 25 +bpy.context.cloth.settings.shear_damping = 25 bpy.context.cloth.settings.air_damping = 1 diff --git a/release/scripts/presets/cloth/silk.py b/release/scripts/presets/cloth/silk.py index c2a98c270b8..af867cf9c60 100644 --- a/release/scripts/presets/cloth/silk.py +++ b/release/scripts/presets/cloth/silk.py @@ -1,7 +1,11 @@ import bpy bpy.context.cloth.settings.quality = 5 bpy.context.cloth.settings.mass = 0.150 -bpy.context.cloth.settings.structural_stiffness = 5 +bpy.context.cloth.settings.tension_stiffness = 5 +bpy.context.cloth.settings.compression_stiffness = 5 +bpy.context.cloth.settings.shear_stiffness = 5 bpy.context.cloth.settings.bending_stiffness = 0.05 -bpy.context.cloth.settings.spring_damping = 0 +bpy.context.cloth.settings.tension_damping = 0 +bpy.context.cloth.settings.compression_damping = 0 +bpy.context.cloth.settings.shear_damping = 0 bpy.context.cloth.settings.air_damping = 1 |