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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user