This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenkernel
Luca Rood da77d9873f Prevent max stiffness values from going under normal stiffness values in cloth stiffness scaling.
When updating the max values under stiffness scaling, they clip at the normal stiffness values
as expected, however when updating stiffness values, you could set them higher than the max
values, and the max values weren't updated accordingly. As the stiffness scaling computes using
the absolute difference between the max values and the stiffness values, you got higher
stiffnesses in scaled areas even though your max is actually lower than the normal stiffness.

This diff fixes that behaviour, by updating the max values to be equal to the stiffness whenever
you set a higher stiffness than the max value.

Also, I have initialized the max values to the same as the stiffnesses, as they were previously
just set to zero, and caused the same problem described above.

Reviewers: lukastoenne

Reviewed By: lukastoenne

Tags: #physics

Differential Revision: https://developer.blender.org/D2147
2016-08-13 19:48:33 +03:00
..
2016-07-30 16:46:13 +10:00
2016-08-03 23:39:36 +02:00
2016-07-02 10:08:33 +10:00
2016-08-06 10:58:13 +02:00
2016-08-06 10:58:13 +02:00
2016-05-17 03:07:40 +10:00
2016-07-30 16:46:13 +10:00
2016-08-04 15:11:21 +02:00
2016-08-08 17:51:15 +02:00
2016-07-14 18:33:12 +02:00
2016-08-06 10:58:13 +02:00
2016-08-08 17:51:15 +02:00
2015-11-12 18:54:26 +11:00
2016-05-11 20:20:25 +10:00
2016-05-03 13:52:07 +10:00
2016-08-06 10:58:13 +02:00