Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-05-31 19:06:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-05-31 19:07:17 +0300
commit72cc6bea14b83ee32f0593be7457cc32188a75e8 (patch)
treed0c58e91057f96c51ae99314dfc78c60857157bd
parentf32a18994ad7f37eb568771f01bab9db53d38d54 (diff)
Fix manipulator immediate mode use
Needs 3D coords
-rw-r--r--source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c8
1 files changed, 4 insertions, 4 deletions
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) {