New customdata layer callback: validate

Used to validate displacement allocation size after face copying
to match face vertex and displacement corners count.
This commit is contained in:
2011-01-02 17:08:25 +00:00
parent 76f0569a86
commit 24e80665d8
4 changed files with 36 additions and 1 deletions

View File

@@ -380,6 +380,7 @@ EditFace *addfacelist(EditMesh *em, EditVert *v1, EditVert *v2, EditVert *v3, Ed
efa->mat_nr= example->mat_nr;
efa->flag= example->flag;
CustomData_em_copy_data(&em->fdata, &em->fdata, example->data, &efa->data);
CustomData_em_validate_data(&em->fdata, efa->data, efa->v4 ? 4 : 3);
}
else {
efa->mat_nr= em->mat_nr;