diff options
author | Antonioya <blendergit@gmail.com> | 2018-12-21 10:44:38 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-12-21 10:44:38 +0300 |
commit | 890507d12f5cbcc336000a4847a52da3f8020bac (patch) | |
tree | a65870d43a480552470f106d647cb784b02bb9d2 /source/blender/editors | |
parent | c3545e7311d02f987c7b44a53fbdc7999c9869bd (diff) |
GP: Move calculated center only for selected strokes
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index c96a6776b6d..b04a9b08087 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -8448,7 +8448,9 @@ static void createTransGPencil(bContext *C, TransInfo *t) copy_v3_v3(td->iloc, &pt->x); /* only copy center in local origins. * This allows get interesting effects also when move using proportional editing */ - if (ts->transform_pivot_point == V3D_AROUND_LOCAL_ORIGINS) { + if ((gps->flag & GP_STROKE_SELECT) && + (ts->transform_pivot_point == V3D_AROUND_LOCAL_ORIGINS)) + { copy_v3_v3(td->center, center); } else { |