Blender Git Commit Log
Git Commits -> Revision da77d98
August 13, 2016, 16:48 (GMT) |
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 |
Commit Details:
Full Hash: da77d9873f1632f2ec4b624e949c0270753fa465
Parent Commit: 35a6e54
Committed By: Alexander Gavrilov
Lines Changed: +25, -0