diff options
author | Antonioya <blendergit@gmail.com> | 2018-12-20 23:25:29 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-12-20 23:25:29 +0300 |
commit | 4d9606ef19b55e892349f651619ae50cb0c43556 (patch) | |
tree | 0343f7c32c47ef08bd0ad78443ff04ceb610df9a /source/blender | |
parent | b49699b1ec6d184ab3ef439a58bd7df7db28b6b7 (diff) |
GP: Use only selected points to calc transform center
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 0ac82e0f775..a2c8e173585 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -8213,15 +8213,7 @@ static void createTransGPencil_center_get( zero_v3(r_center); int tot_sel = 0; for (i = 0, pt = gps->points; i < gps->totpoints; i++, pt++) { - bool point_ok; - if (is_prop_edit) { - point_ok = true; - } - else { - /* Only selected points in selected strokes */ - point_ok = (pt->flag & GP_SPOINT_SELECT) != 0; - } - if (point_ok) { + if (pt->flag & GP_SPOINT_SELECT) { add_v3_v3(r_center, &pt->x); tot_sel++; } |