[Bf-blender-cvs] [2f46b16b0e0] greasepencil-object: Cleanup redundant variable

Antonio Vazquez noreply at git.blender.org
Mon Apr 2 16:45:36 CEST 2018


Commit: 2f46b16b0e04966c881e9d66cebaa2dfe3a719fe
Author: Antonio Vazquez
Date:   Mon Apr 2 16:33:45 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB2f46b16b0e04966c881e9d66cebaa2dfe3a719fe

Cleanup redundant variable

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 0313831abc9..314118c3298 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -339,7 +339,6 @@ static void gp_reproject_toplane(tGPsdata *p, bGPDstroke *gps)
 	Object *obact = (Object *)p->ownerPtr.data;
 
 	float origin[3];
-	float cursor[3];
 	RegionView3D *rv3d = p->ar->regiondata;
 
 	/* verify the stroke mode is CURSOR 3d space mode */
@@ -353,9 +352,8 @@ static void gp_reproject_toplane(tGPsdata *p, bGPDstroke *gps)
 		return;
 	}
 
-	/* get drawing origin and copy */
-	gp_get_3d_reference(p, cursor);
-	copy_v3_v3(origin, cursor);
+	/* get drawing origin */
+	gp_get_3d_reference(p, origin);
 	ED_gp_project_stroke_to_plane(obact, rv3d, gps, origin, p->lock_axis - 1, p->scene->toolsettings->gpencil_src);
 }



More information about the Bf-blender-cvs mailing list