[Bf-blender-cvs] [f03660bb84f] blender2.8: Correct axis mapping logic

Campbell Barton noreply at git.blender.org
Tue Dec 19 04:36:10 CET 2017


Commit: f03660bb84ff5345c54f871ad3d4f11f01827bfc
Author: Campbell Barton
Date:   Tue Dec 19 14:36:22 2017 +1100
Branches: blender2.8
https://developer.blender.org/rBf03660bb84ff5345c54f871ad3d4f11f01827bfc

Correct axis mapping logic

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

M	source/blender/editors/space_view3d/view3d_manipulator_navigate.c

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

diff --git a/source/blender/editors/space_view3d/view3d_manipulator_navigate.c b/source/blender/editors/space_view3d/view3d_manipulator_navigate.c
index bcc067b8fc1..b2a434174d9 100644
--- a/source/blender/editors/space_view3d/view3d_manipulator_navigate.c
+++ b/source/blender/editors/space_view3d/view3d_manipulator_navigate.c
@@ -159,9 +159,9 @@ static void WIDGETGROUP_navigate_setup(const bContext *UNUSED(C), wmManipulatorG
 			RV3D_VIEW_TOP,
 		};
 
-		for (int part_index = 0; part_index < 6; part_index+= 1) {
-			PointerRNA *ptr = WM_manipulator_operator_set(mpr, mapping[part_index], ot_viewnumpad, NULL);
-			RNA_enum_set(ptr, "type", RV3D_VIEW_FRONT + part_index);
+		for (int part_index = 0; part_index < 6; part_index += 1) {
+			PointerRNA *ptr = WM_manipulator_operator_set(mpr, part_index + 1, ot_viewnumpad, NULL);
+			RNA_enum_set(ptr, "type", mapping[part_index]);
 		}
 
 		/* When dragging an axis, use this instead. */



More information about the Bf-blender-cvs mailing list