Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2022-05-04 17:46:12 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-05-04 18:18:58 +0300
commitb5c3885bf05247cb1ddd4569ff13f55f40752d2f (patch)
treef8c985376d1f09a063cab44301e51bb02460c076 /source/blender/editors/gpencil
parent5559ea59a1eb66ef94ab430012e3612075b4e763 (diff)
Fix T97851: GPencil Bake object transform operator wrong transformation
The problem was the layer transformation was already applied in the layer and if we apply in the bake, we are doing double transformation. Differential Revision: https://developer.blender.org/D14844
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r--source/blender/editors/gpencil/gpencil_bake_animation.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/gpencil/gpencil_bake_animation.cc b/source/blender/editors/gpencil/gpencil_bake_animation.cc
index 0667da46e25..dfc74f6d225 100644
--- a/source/blender/editors/gpencil/gpencil_bake_animation.cc
+++ b/source/blender/editors/gpencil/gpencil_bake_animation.cc
@@ -283,10 +283,6 @@ static int gpencil_bake_grease_pencil_animation_exec(bContext *C, wmOperator *op
}
MEM_freeN(layer_name);
- /* Layer Transform matrix. */
- float matrix[4][4];
- BKE_gpencil_layer_transform_matrix_get(depsgraph, elem->ob, gpl_src, matrix);
-
/* Apply time modifier. */
int remap_cfra = BKE_gpencil_time_modifier_cfra(
depsgraph, scene, elem->ob, gpl_src, CFRA, false);
@@ -324,7 +320,6 @@ 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(matrix, &pt->x);
mul_m4_v3(invmat, &pt->x);
}