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-07-26 11:53:08 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-09-19 15:39:21 +0300
commit6d24de6c4336365330d285ba133f606c15f0dd21 (patch)
tree1e8c17faf59ba3ce8d4b3b886c967cb93416df62
parent238cd2b2a4b662b303e7037d2939fa2a4c994be9 (diff)
Fix T99979: GPencil strokes cannot be edited after set origin
The stroke points were changed but the bounding box calculation was not done and this produced a problem in any bounding box check done by different tools.
-rw-r--r--source/blender/editors/object/object_transform.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c
index ba867afe31f..d7863c54c51 100644
--- a/source/blender/editors/object/object_transform.c
+++ b/source/blender/editors/object/object_transform.c
@@ -1406,6 +1406,7 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
sub_v3_v3(mpt, offset_local);
mul_v3_m4v3(&pt->x, diff_mat, mpt);
}
+ BKE_gpencil_stroke_geometry_update(gpd, gps);
}
}
}