[Bf-blender-cvs] [106c212b1a8] greasepencil-object: Cleanup - Use builtin function for clarity

Joshua Leung noreply at git.blender.org
Thu Feb 8 04:14:10 CET 2018


Commit: 106c212b1a8e68a476157ae7e08ff907b4ba2a60
Author: Joshua Leung
Date:   Thu Feb 8 16:09:15 2018 +1300
Branches: greasepencil-object
https://developer.blender.org/rB106c212b1a8e68a476157ae7e08ff907b4ba2a60

Cleanup - Use builtin function for clarity

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

M	source/blender/editors/gpencil/drawgpencil.c

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

diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c
index 8dd7c9f34ef..c0aa5a0c80c 100644
--- a/source/blender/editors/gpencil/drawgpencil.c
+++ b/source/blender/editors/gpencil/drawgpencil.c
@@ -408,10 +408,8 @@ static void gp_draw_stroke_volumetric_3d(
 /* calc bounding box in 2d using flat projection data */
 static void gp_calc_2d_bounding_box(const float(*points2d)[2], int totpoints, float minv[2], float maxv[2], bool expand)
 {
-	minv[0] = points2d[0][0];
-	minv[1] = points2d[0][1];
-	maxv[0] = points2d[0][0];
-	maxv[1] = points2d[0][1];
+	copy_v2_v2(minv, points2d[0]);
+	copy_v2_v2(maxv, points2d[0]);
 
 	for (int i = 1; i < totpoints; i++) {
 		/* min */



More information about the Bf-blender-cvs mailing list