[Bf-blender-cvs] [cf332e896fa] master: GPencil: Fix unreported double rotation in Fill circles

Antonio Vazquez noreply at git.blender.org
Tue Jan 24 13:19:25 CET 2023


Commit: cf332e896fa86a13642a150f7e04419b60761c1e
Author: Antonio Vazquez
Date:   Tue Jan 24 13:19:08 2023 +0100
Branches: master
https://developer.blender.org/rBcf332e896fa86a13642a150f7e04419b60761c1e

GPencil: Fix unreported double rotation in Fill circles

The help circles to fill areas were rotated with the object rotation,
but as the stroke is part of the object, apply the rot matrix again
produced a double rotation, so it can be removed.

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

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

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

diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 6b1f5ba1ad0..8a7e1c03e66 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -314,11 +314,6 @@ static void add_endpoint_radius_help(tGPDfill *tgpf,
     pt->z = endpoint[2] + radius * sinf(angle);
     pt->strength = 1.0f;
     pt->pressure = 1.0f;
-
-    /* Rotate to object rotation. */
-    sub_v3_v3(&pt->x, endpoint);
-    mul_mat3_m4_v3(tgpf->ob->object_to_world, &pt->x);
-    add_v3_v3(&pt->x, endpoint);
   }
 }



More information about the Bf-blender-cvs mailing list