From cf332e896fa86a13642a150f7e04419b60761c1e Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Tue, 24 Jan 2023 13:19:08 +0100 Subject: [PATCH] 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. --- source/blender/editors/gpencil/gpencil_fill.c | 5 ----- 1 file changed, 5 deletions(-) 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); } }