GP: Move calculated center only for selected strokes

This commit is contained in:
Antonioya
2018-12-21 08:44:38 +01:00
parent c3545e7311
commit 890507d12f

View File

@@ -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 {