diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-05-31 19:06:30 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-05-31 19:07:17 +0300 |
commit | 72cc6bea14b83ee32f0593be7457cc32188a75e8 (patch) | |
tree | d0c58e91057f96c51ae99314dfc78c60857157bd /source/blender/windowmanager/manipulators/intern | |
parent | f32a18994ad7f37eb568771f01bab9db53d38d54 (diff) |
Fix manipulator immediate mode use
Needs 3D coords
Diffstat (limited to 'source/blender/windowmanager/manipulators/intern')
-rw-r--r-- | source/blender/windowmanager/manipulators/intern/manipulator_library/arrow_manipulator.c | 8 |
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) { |