[Bf-blender-cvs] [e7395c75d50] greasepencil-object: Fix: When transforming GP strokes in "Local" mode, the strokes would get obscured by the transform constraint lines

Joshua Leung noreply at git.blender.org
Tue Sep 26 01:50:56 CEST 2017


Commit: e7395c75d504af2c2f720f43ea27b93e04a378e4
Author: Joshua Leung
Date:   Tue Sep 26 12:50:37 2017 +1300
Branches: greasepencil-object
https://developer.blender.org/rBe7395c75d504af2c2f720f43ea27b93e04a378e4

Fix: When transforming GP strokes in "Local" mode, the strokes would get obscured by
the transform constraint lines

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

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

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

diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index 6132c4dda5f..4e409e7f77f 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -851,6 +851,13 @@ static void drawObjectConstraint(TransInfo *t)
 			}
 		}
 
+		if (t->options & CTX_GPENCIL_STROKES) {
+			/* only draw a constraint line for one point, otherwise we can't see anything */
+			if ((options & DRAWLIGHT) == 0) {
+				break;
+			}
+		}
+
 		if (t->flag & T_OBJECT) {
 			copy_v3_v3(co, td->ob->obmat[3]);
 			axismtx = td->axismtx;



More information about the Bf-blender-cvs mailing list