Fix bug in DNA_struct_elem_find when checking the first field
authorSybren A. Stüvel <sybren@stuvel.eu>
Tue, 26 Jun 2018 15:35:04 +0000 (17:35 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Tue, 26 Jun 2018 15:35:21 +0000 (17:35 +0200)
commit599e979d90327c1e10031f992cb2be2cda414825
treef645195421bc559cb23a36433c4d2bae4f835a60
parent73eb1bfd55d51f1dfeb6c49560e0096c9214a105
Fix bug in DNA_struct_elem_find when checking the first field

find_elem(olddata=NULL) doesn't work reliably for existence checks; it will
return NULL both when the field is found at offset 0 and when it is not
found at all.
source/blender/makesdna/intern/dna_genfile.c