diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-08-23 18:19:55 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-08-23 18:20:12 +0300 |
commit | 77f01748e7171f29e83b8e7d69a052e1ef80a473 (patch) | |
tree | 28e33884809af934f4dd1052932be34a84e70cf1 /source/blender | |
parent | 18f4182e983f2c99e09f0a9203be91b53c161e22 (diff) |
GPencil: Fix unreported set origin from Python
The set origin was not working from python because the operator was checking if the stroke was valid in the console area.
As the stroke only can be valid for GP obects, this check is not needed.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/object/object_transform.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c index 76a45f219fe..2a8b306b085 100644 --- a/source/blender/editors/object/object_transform.c +++ b/source/blender/editors/object/object_transform.c @@ -1355,11 +1355,6 @@ static int object_origin_set_exec(bContext *C, wmOperator *op) invert_m4_m4(inverse_diff_mat, diff_mat); for (bGPDframe *gpf = gpl->frames.first; gpf; gpf = gpf->next) { for (bGPDstroke *gps = gpf->strokes.first; gps; gps = gps->next) { - /* skip strokes that are invalid for current view */ - if (ED_gpencil_stroke_can_use(C, gps) == false) { - continue; - } - for (i = 0, pt = gps->points; i < gps->totpoints; i++, pt++) { float mpt[3]; mul_v3_m4v3(mpt, inverse_diff_mat, &pt->x); |