[Bf-blender-cvs] [bf6aa5d63d2] blender-v3.2-release: GPencil: Fix unreported Bake animation error
Antonio Vazquez
noreply at git.blender.org
Fri May 27 14:22:14 CEST 2022
Commit: bf6aa5d63d2d775b948966965f01e400650730ea
Author: Antonio Vazquez
Date: Fri May 27 10:21:31 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rBbf6aa5d63d2d775b948966965f01e400650730ea
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.
===================================================================
M source/blender/editors/gpencil/gpencil_bake_animation.cc
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list