GP: Move calculated center only for selected strokes
authorAntonioya <blendergit@gmail.com>
Fri, 21 Dec 2018 07:44:38 +0000 (08:44 +0100)
committerAntonioya <blendergit@gmail.com>
Fri, 21 Dec 2018 07:44:38 +0000 (08:44 +0100)
source/blender/editors/transform/transform_conversions.c

index c96a677..b04a9b0 100644 (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 {