[Bf-blender-cvs] [b8c4be08442] blender2.8: FIx copy/paste mistake in own previous commit.
Bastien Montagne
noreply at git.blender.org
Tue Apr 11 15:19:21 CEST 2017
Commit: b8c4be0844272fa2b9e10cdf9193e9988a0deacc
Author: Bastien Montagne
Date: Tue Apr 11 14:30:23 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBb8c4be0844272fa2b9e10cdf9193e9988a0deacc
FIx copy/paste mistake in own previous commit.
===================================================================
M source/blender/windowmanager/manipulators/intern/manipulator_library/arrow2d_manipulator.c
===================================================================
diff --git a/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow2d_manipulator.c b/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow2d_manipulator.c
index a12617ba94f..ad5f2f6251b 100644
--- a/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow2d_manipulator.c
+++ b/source/blender/windowmanager/manipulators/intern/manipulator_library/arrow2d_manipulator.c
@@ -77,7 +77,7 @@ static void arrow2d_draw_geom(ArrowManipulator2D *arrow, const float origin[2],
const float len = arrow->line_len;
const float draw_line_ofs = (arrow->manipulator.line_width * 0.5f) / arrow->manipulator.scale;
- unsigned int pos = VertexFormat_add_attrib(immVertexFormat(), "pos", COMP_F32, 3, KEEP_FLOAT);
+ unsigned int pos = VertexFormat_add_attrib(immVertexFormat(), "pos", COMP_F32, 2, KEEP_FLOAT);
gpuPushMatrix();
gpuTranslate2fv(origin);
More information about the Bf-blender-cvs
mailing list