[Bf-blender-cvs] [72cc6bea14b] blender2.8: Fix manipulator immediate mode use

Campbell Barton noreply at git.blender.org
Wed May 31 18:07:48 CEST 2017


Commit: 72cc6bea14b83ee32f0593be7457cc32188a75e8
Author: Campbell Barton
Date:   Thu Jun 1 02:06:30 2017 +1000
Branches: blender2.8
https://developer.blender.org/rB72cc6bea14b83ee32f0593be7457cc32188a75e8

Fix manipulator immediate mode use

Needs 3D coords

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

M	source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c

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

diff --git a/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c b/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c
index a95d8033a30..b2e04849c34 100644
--- a/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c
+++ b/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c
@@ -110,10 +110,10 @@ static void arrow_draw_geom(const ArrowManipulator *arrow, const bool select, co
 		immUniformColor4fv(color);
 
 		immBegin(PRIM_LINES, 4);
-		immVertex2f(pos, -1.0, 0.f);
-		immVertex2f(pos, 1.0, 0.f);
-		immVertex2f(pos, 0.f, -1.0);
-		immVertex2f(pos, 0.f, 1.0);
+		immVertex3f(pos, -1.0, 0.f, 0.0);
+		immVertex3f(pos, 1.0, 0.f, 0.0);
+		immVertex3f(pos, 0.f, -1.0, 0.0);
+		immVertex3f(pos, 0.f, 1.0, 0.0);
 		immEnd();
 	}
 	else if (arrow->style & MANIPULATOR_ARROW_STYLE_CONE) {




More information about the Bf-blender-cvs mailing list