Fix for drawing arrows on node lines between two reroute nodes. This was a typo in...
authorLukas Toenne <lukas.toenne@googlemail.com>
Mon, 6 Aug 2012 20:48:08 +0000 (20:48 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Mon, 6 Aug 2012 20:48:08 +0000 (20:48 +0000)
source/blender/editors/space_node/drawnode.c

index 3e34c369a6922a51194916d4b7a4233543aad9a4..d201a05c3786d998f998606fea6d8ec7fed9fe3d 100644 (file)
@@ -3283,7 +3283,7 @@ void node_draw_link_bezier(View2D *v2d, SpaceNode *snode, bNodeLink *link,
 
                        sub_v2_v2v2(d_xy, coord_array[LINK_ARROW], coord_array[LINK_ARROW - 1]);
                        len = len_v2(d_xy);
-                       mul_v2_fl(d_xy, 1.0f / (len * ARROW_SIZE));
+                       mul_v2_fl(d_xy, ARROW_SIZE / len);
                        arrow1[0] = coord_array[LINK_ARROW][0] - d_xy[0] + d_xy[1];
                        arrow1[1] = coord_array[LINK_ARROW][1] - d_xy[1] - d_xy[0];
                        arrow2[0] = coord_array[LINK_ARROW][0] - d_xy[0] - d_xy[1];