Fix View3D orientation index initial value

Would assert after transform
This commit is contained in:
Campbell Barton 2017-06-02 15:21:56 +10:00
parent 7beb173d70
commit cb23927c9b

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