Fix T56595: Hair Dynamics stop working after saving new file
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 27 Dec 2018 10:35:31 +0000 (11:35 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 27 Dec 2018 10:35:31 +0000 (11:35 +0100)
commit81ab9ef968d392aa8edc79566bf02e23f93da7a8
tree62a930e071a6a96ba5b6deaa891caca2d068d62b
parent2c0c1f494dcfadb3c01d23e2348e28bc8864e9f3
Fix T56595: Hair Dynamics stop working after saving new file

The issue was caused by NaN valid of the average spring length being
stored in the file. This caused accumulation in the springs builder
to also deliver NaNs, which then caused solver itself to not do
anything.

Not sure why these values where never initialized prior to the
accumulation. Or even, why this runime data is stored in a DNA.

Some sanitizing is possible here, but needs to be done with care
to not disrupt Spring production.
source/blender/blenkernel/intern/cloth.c