Fix: When transforming GP strokes in "Local" mode, the strokes would get obscured
by the transform constraint lines
Ported over e7395c75d5 from the
greasepencil-object branch. I should've fixed this ages ago, but
couldn't figure out why at the time.
This commit is contained in:
@@ -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) {
|
if (t->flag & T_OBJECT) {
|
||||||
copy_v3_v3(co, td->ob->obmat[3]);
|
copy_v3_v3(co, td->ob->obmat[3]);
|
||||||
axismtx = td->axismtx;
|
axismtx = td->axismtx;
|
||||||
|
|||||||
Reference in New Issue
Block a user