GPencil: Cancel all transformations in Draw mode

Actually, when you press G/R/S in Draw mode, the transformations can be done, but this is annoying in draw mode and must be captured an cancel.

This patch capture the transformation and cancel it.

Reviewed by @brecht
This commit is contained in:
Antonioya
2019-03-17 12:20:15 +01:00
parent 2d8aa2e6ad
commit ef66aa2005

View File

@@ -8935,6 +8935,10 @@ void createTransData(bContext *C, TransInfo *t)
has_transform_context = false;
}
}
else if (ob && (ob->mode == OB_MODE_PAINT_GPENCIL)) {
/* In grease pencil draw mode all transformations must be canceled. */
has_transform_context = false;
}
else {
createTransObject(C, t);
countAndCleanTransDataContainer(t);