BGE: Fix unconverted character max jump value from old files.

The bug was introduced in 3dd83b, a little conversion in versioning_270.c
was forgotten. Now max_jumps is set as default to 1.
This commit is contained in:
Porteries Tristan 2015-12-18 22:44:19 +01:00
parent d0d59ed282
commit ef49632b24
Notes: blender-bot 2023-02-14 11:07:28 +01:00
Referenced by issue #47108, Bmesh boolean fails with overlapping faces
Referenced by issue #47019, BMesh boolean fails to fill holes with very low threshold value
1 changed files with 6 additions and 0 deletions

View File

@ -1029,5 +1029,11 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
else
gpd->flag &= ~GP_DATA_SHOW_ONIONSKINS;
}
if (!DNA_struct_elem_find(fd->filesdna, "Object", "unsigned char", "max_jumps")) {
for (Object *ob = main->object.first; ob; ob = ob->id.next) {
ob->max_jumps = 1;
}
}
}
}