[Bf-blender-cvs] [5c427f4b177] master: GPencil: Fix unreliable comparison

Antonio Vazquez noreply at git.blender.org
Thu Mar 12 16:34:09 CET 2020


Commit: 5c427f4b17700b0422022bb0796608a5ac89b55e
Author: Antonio Vazquez
Date:   Thu Mar 12 16:33:51 2020 +0100
Branches: master
https://developer.blender.org/rB5c427f4b17700b0422022bb0796608a5ac89b55e

GPencil: Fix unreliable comparison

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

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 a975af1c19a..7fe6f374766 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -2583,10 +2583,9 @@ bool ED_gpencil_stroke_check_collision(GP_SpaceConversion *gsc,
   bGPDspoint pt_dummy, pt_dummy_ps;
   float boundbox_min[2] = {0.0f};
   float boundbox_max[2] = {0.0f};
-  float zerov3[3];
 
   /* Check we have something to use (only for old files). */
-  if (equals_v3v3(zerov3, gps->boundbox_min)) {
+  if (is_zero_v3(gps->boundbox_min)) {
     BKE_gpencil_stroke_boundingbox_calc(gps);
   }



More information about the Bf-blender-cvs mailing list