Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-03-17 14:20:15 +0300
committerAntonioya <blendergit@gmail.com>2019-03-17 14:20:34 +0300
commitef66aa2005de928fcac381ef227727d27bf61fcf (patch)
treea8449858047a0fe5d5108dc5d01f58c6ed47f2fb
parent2d8aa2e6ad351859796da8406a0c8f3cc2b45bbf (diff)
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
-rw-r--r--source/blender/editors/transform/transform_conversions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index 4383a32eb8b..0fc36858e13 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -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);