GP: Undo center calculation
authorAntonioya <blendergit@gmail.com>
Thu, 20 Dec 2018 18:15:01 +0000 (19:15 +0100)
committerAntonioya <blendergit@gmail.com>
Thu, 20 Dec 2018 18:15:01 +0000 (19:15 +0100)
This is breaking the transformation with falloff enabled.

source/blender/editors/transform/transform_conversions.c

index 61230e75370adbf20b9d5d3e8f40ffab5cb3b7f1..f55254c637078df27e75bdf7a2d11891f55a628c 100644 (file)
@@ -8455,7 +8455,8 @@ static void createTransGPencil(bContext *C, TransInfo *t)
                                                                /* do point... */
                                                                if (point_ok) {
                                                                        copy_v3_v3(td->iloc, &pt->x);
                                                                /* do point... */
                                                                if (point_ok) {
                                                                        copy_v3_v3(td->iloc, &pt->x);
-                                                                       copy_v3_v3(td->center, center);
+                                                                       /* GPXX disable center while get better solution */
+                                                                       copy_v3_v3(td->center, &pt->x);
 
                                                                        td->loc = &pt->x;
 
 
                                                                        td->loc = &pt->x;