[Bf-blender-cvs] [4e5aecb34ac] temp-gpencil-io: Cleanup unneeded variable

Antonio Vazquez noreply at git.blender.org
Wed Mar 3 13:21:30 CET 2021


Commit: 4e5aecb34ac4c46527eb35b6abc9b089f3e2563c
Author: Antonio Vazquez
Date:   Wed Mar 3 13:21:26 2021 +0100
Branches: temp-gpencil-io
https://developer.blender.org/rB4e5aecb34ac4c46527eb35b6abc9b089f3e2563c

Cleanup unneeded variable

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

M	source/blender/blenkernel/intern/gpencil_geom.c

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

diff --git a/source/blender/blenkernel/intern/gpencil_geom.c b/source/blender/blenkernel/intern/gpencil_geom.c
index 533728c60a3..52f724ece91 100644
--- a/source/blender/blenkernel/intern/gpencil_geom.c
+++ b/source/blender/blenkernel/intern/gpencil_geom.c
@@ -3470,15 +3470,12 @@ void BKE_gpencil_stroke_uniform_subdivide(bGPdata *gpd,
  */
 void BKE_gpencil_stroke_to_view_space(RegionView3D *rv3d, bGPDstroke *gps, float diff_mat[4][4])
 {
-  float tmp[3];
-
   for (int i = 0; i < gps->totpoints; i++) {
     bGPDspoint *pt = &gps->points[i];
-    /* point to parent space */
-    mul_v3_m4v3(tmp, diff_mat, &pt->x);
+    /* Point to parent space. */
+    mul_v3_m4v3(&pt->x, diff_mat, &pt->x);
     /* point to view space */
-    mul_m4_v3(rv3d->viewmat, tmp);
-    copy_v3_v3(&pt->x, tmp);
+    mul_m4_v3(rv3d->viewmat, &pt->x);
   }
 }



More information about the Bf-blender-cvs mailing list