[Bf-blender-cvs] [ef66aa2005d] master: GPencil: Cancel all transformations in Draw mode

Antonioya noreply at git.blender.org
Sun Mar 17 12:20:54 CET 2019


Commit: ef66aa2005de928fcac381ef227727d27bf61fcf
Author: Antonioya
Date:   Sun Mar 17 12:20:15 2019 +0100
Branches: master
https://developer.blender.org/rBef66aa2005de928fcac381ef227727d27bf61fcf

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

===================================================================

M	source/blender/editors/transform/transform_conversions.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list