From bf6aa5d63d2d775b948966965f01e400650730ea Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 27 May 2022 10:21:31 +0200 Subject: GPencil: Fix unreported Bake animation error This bug was introduced in commit https://developer.blender.org/rB5188c14718c56e4d088d3c5bb3ce3ed9ed8b7bdc because the object transform was not applied when baking the object. Thanks to @frogstomp for the head up. --- source/blender/editors/gpencil/gpencil_bake_animation.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'source') diff --git a/source/blender/editors/gpencil/gpencil_bake_animation.cc b/source/blender/editors/gpencil/gpencil_bake_animation.cc index dfc74f6d225..66f53bea326 100644 --- a/source/blender/editors/gpencil/gpencil_bake_animation.cc +++ b/source/blender/editors/gpencil/gpencil_bake_animation.cc @@ -320,6 +320,7 @@ static int gpencil_bake_grease_pencil_animation_exec(bContext *C, wmOperator *op /* Update point location to new object space. */ for (int j = 0; j < gps->totpoints; j++) { bGPDspoint *pt = &gps->points[j]; + mul_m4_v3(ob_eval->obmat, &pt->x); mul_m4_v3(invmat, &pt->x); } -- cgit v1.2.3