Freestyle: Fix for versioning code not working properly with new texture options.
To get the versioning code properly work, the condition should have been: DNA_struct_elem_find(fd->filesdna, "FreestyleLineStyle", "MTex", "*mtex[18]") The present commit uses another new structure member instead, to avoid referring to the magic number 18 in the last string literal.
This commit is contained in:
parent
d27d982657
commit
77153b3032
|
@ -280,7 +280,7 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
|
|||
}
|
||||
}
|
||||
|
||||
if (!DNA_struct_elem_find(fd->filesdna, "FreestyleLineStyle", "MTex", "mtex")) {
|
||||
if (!DNA_struct_elem_find(fd->filesdna, "FreestyleLineStyle", "float", "texstep")) {
|
||||
FreestyleLineStyle *linestyle;
|
||||
|
||||
for (linestyle = main->linestyle.first; linestyle; linestyle = linestyle->id.next) {
|
||||
|
|
Loading…
Reference in New Issue