diff options
author | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-12-19 00:44:19 +0300 |
---|---|---|
committer | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-12-19 01:15:47 +0300 |
commit | ef49632b244c139a44403ec54119625a76570f59 (patch) | |
tree | 0b2b04ee0d0f034809983d9e07eca8bab5d679ea | |
parent | d0d59ed282b3c1d5fe07c18418fa82cfb527e37c (diff) |
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.
-rw-r--r-- | source/blender/blenloader/intern/versioning_270.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_270.c b/source/blender/blenloader/intern/versioning_270.c index 72312d7985c..816eb879015 100644 --- a/source/blender/blenloader/intern/versioning_270.c +++ b/source/blender/blenloader/intern/versioning_270.c @@ -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; + } + } } } |