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:
2015-12-18 22:44:19 +01:00
parent d0d59ed282
commit ef49632b24

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;
}
}
}
}