Fix T58448: Cloth presets fails to load due to missing attribute structural_stiffness.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 3 Dec 2018 16:45:17 +0000 (17:45 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 3 Dec 2018 16:46:39 +0000 (17:46 +0100)
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...

release/scripts/presets/cloth/cotton.py
release/scripts/presets/cloth/denim.py
release/scripts/presets/cloth/leather.py
release/scripts/presets/cloth/rubber.py
release/scripts/presets/cloth/silk.py

index 695050cf1957a66ab9e425f752d9cbfb421cac9f..9e766416a753c7aa4c2c171c037907f3accd17e6 100644 (file)
@@ -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
index bd72fa873da193cd0bc8dba67268a870afc14680..7abf446970967a5b5a0923bc34ff2c89c3f34d1b 100644 (file)
@@ -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
index b85f504b0bb02689a66ccd1d101d067dd1ef26a4..8ba9ff7dabed2e360dda9b5f5b593816b7fe3baf 100644 (file)
@@ -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
index cb354168daa769b2f9773c1828351755f7c89315..0d791fab2a975cd7eedeb4267fd04b8fd7768268 100644 (file)
@@ -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
index c2a98c270b82e5bd6f0771df7f1cd42b185ab9ac..af867cf9c60743e3d16e4b064ddbfa70508e5dbc 100644 (file)
@@ -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