Avoid a DNA parsing bug that would parse "float gravity [3];" as two
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 13 Feb 2010 23:18:28 +0000 (23:18 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 13 Feb 2010 23:18:28 +0000 (23:18 +0000)
commitd0d47c70a924554667b35ceaea9e009f19980c69
treef0151d14f4a54d955bccab9bbd149178a9af5d73
parentce26d457baa36f34d84ccd64470d927f303286ff
Avoid a DNA parsing bug that would parse "float gravity [3];" as two
struct members "gravity" and "[3]". Now it throws an error in this case,
safer than trying to fix the parsing code. Also patches the old DNA of
ClothSimSettings which had this problem .. very ugly code.

Fixes #20330: cloth sim settings getting corrupted when read from 2.49.
source/blender/makesdna/DNA_cloth_types.h
source/blender/makesdna/intern/dna_genfile.c
source/blender/makesdna/intern/makesdna.c