diff options
author | Joshua Leung <aligorith@gmail.com> | 2017-09-26 02:56:24 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2017-09-26 03:00:38 +0300 |
commit | b0ccf2322b394a689a5ee730be9f87b7924fe01a (patch) | |
tree | 1556ed31be1dfc4c27110c866e6c07cce75b9393 /source/blender/editors/transform/transform_constraints.c | |
parent | e8a0812a3b964f2a8d7cb0c816086dbf277717ff (diff) |
Fix: When transforming GP strokes in "Local" mode, the strokes would get obscured
by the transform constraint lines
Ported over e7395c75d504af2c2f720f43ea27b93e04a378e4 from the
greasepencil-object branch. I should've fixed this ages ago, but
couldn't figure out why at the time.
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r-- | source/blender/editors/transform/transform_constraints.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c index d7b670b6476..5621eede543 100644 --- a/source/blender/editors/transform/transform_constraints.c +++ b/source/blender/editors/transform/transform_constraints.c @@ -831,6 +831,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; |