Transform: Suppress assert w/ vertex paint

This commit is contained in:
Campbell Barton 2018-06-14 15:59:12 +02:00
parent 00eeb05f4c
commit 3a36cbdfde
1 changed files with 4 additions and 0 deletions

View File

@ -8632,6 +8632,10 @@ void createTransData(bContext *C, TransInfo *t)
createTransPaintCurveVerts(C, t);
countAndCleanTransDataContainer(t);
}
/* Mark as initialized if above checks fail. */
if (t->data_len_all == -1) {
t->data_len_all = 0;
}
}
else {
createTransObject(C, t);