[Bf-blender-cvs] [cb23927c9b2] blender2.8: Fix View3D orientation index initial value

Campbell Barton noreply at git.blender.org
Fri Jun 2 07:38:47 CEST 2017


Commit: cb23927c9b24d5b17e35c8682060cd6839337a12
Author: Campbell Barton
Date:   Fri Jun 2 15:21:56 2017 +1000
Branches: blender2.8
https://developer.blender.org/rBcb23927c9b24d5b17e35c8682060cd6839337a12

Fix View3D orientation index initial value

Would assert after transform

===================================================================

M	source/blender/blenloader/intern/versioning_280.c

===================================================================

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




More information about the Bf-blender-cvs mailing list