Transform: avoid assert in wpaint mode

This commit is contained in:
Campbell Barton 2018-06-05 11:31:17 +02:00
parent b9db470636
commit f1a3b68e76
1 changed files with 4 additions and 1 deletions

View File

@ -8593,7 +8593,10 @@ void createTransData(bContext *C, TransInfo *t)
countAndCleanTransDataContainer(t);
}
}
}
/* Mark as initialized if above checks fail. */
if (t->data_len_all == -1) {
t->data_len_all = 0;
}
}
else if (ob && (ob->mode & OB_MODE_PARTICLE_EDIT) && PE_start_edit(PE_get_current(scene, ob))) {