[Bf-blender-cvs] [c986a2c7aa3] blender2.8: fix rotation manipulator's Push/PopMatrix balance

Mike Erwin noreply at git.blender.org
Fri Apr 7 08:53:46 CEST 2017


Commit: c986a2c7aa33423cfdda575d8ed2b50caf053495
Author: Mike Erwin
Date:   Fri Apr 7 03:51:10 2017 -0400
Branches: blender2.8
https://developer.blender.org/rBc986a2c7aa33423cfdda575d8ed2b50caf053495

fix rotation manipulator's Push/PopMatrix balance

Was popping out the bottom of the stack.

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

M	source/blender/editors/transform/transform_manipulator.c

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

diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c
index ffa22e1326b..384bdb3b258 100644
--- a/source/blender/editors/transform/transform_manipulator.c
+++ b/source/blender/editors/transform/transform_manipulator.c
@@ -1187,6 +1187,7 @@ static void draw_manipulator_rotate(
 		}
 
 		glDisable(GL_CLIP_DISTANCE0);
+		gpuPushMatrix(); /* to balance final pop at end of function */
 	}
 	else {




More information about the Bf-blender-cvs mailing list