diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-06-02 08:21:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-06-02 08:21:56 +0300 |
commit | cb23927c9b24d5b17e35c8682060cd6839337a12 (patch) | |
tree | eb72cfe490c8224570d242804953aa3cf3290e3b /source/blender/blenloader | |
parent | 7beb173d703c11373b9883f39d65b8d528283ff2 (diff) |
Fix View3D orientation index initial value
Would assert after transform
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index 13da6e5d407..fa03725fa6f 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -390,6 +390,9 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *main) v3d->custom_orientation_index = v3d->twmode - V3D_MANIP_CUSTOM; v3d->twmode = V3D_MANIP_CUSTOM; } + else { + v3d->custom_orientation_index = -1; + } } } } |