[Bf-blender-cvs] [2d0babbbc7e] greasepencil-object: Cleanup variable initialization

Antonio Vazquez noreply at git.blender.org
Thu Mar 1 17:31:35 CET 2018


Commit: 2d0babbbc7e4cf683b5f16fc5f6e012d36c76cfe
Author: Antonio Vazquez
Date:   Thu Mar 1 16:47:34 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB2d0babbbc7e4cf683b5f16fc5f6e012d36c76cfe

Cleanup variable initialization

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 05812f1f311..37dcc38b8cb 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -1535,8 +1535,7 @@ void ED_gpencil_setup_modes(bContext *C, bGPdata *gpd, int newmode)
 /* helper to convert 2d to 3d for simple drawing buffer */
 static void gpencil_stroke_convertcoords(Scene *scene, ARegion *ar, View3D *v3d, const tGPspoint *point2D, float origin[3], float out[3])
 {
-	float mval_f[2];
-	ARRAY_SET_ITEMS(mval_f, point2D->x, point2D->y);
+	float mval_f[2] = { (float)point2D->x, (float)point2D->y };
 	float mval_prj[2];
 	float rvec[3], dvec[3];
 	float zfac;



More information about the Bf-blender-cvs mailing list