diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-11-05 09:52:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-11-05 09:52:21 +0400 |
commit | 008630abfc65ebc33be48f05a40694394f5be392 (patch) | |
tree | 9923d454bea947433bf931d51a157fe84bedf7ca /source/blender/blenloader | |
parent | 88c5b1408cf30f643a207f5e759793fe2d7760fd (diff) |
fix for save-as-legacy mesh format doing customdata asserts.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index d7c62837008..8521b43e437 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -1830,13 +1830,13 @@ static void write_meshs(WriteData *wd, ListBase *idbase) mesh->totloop = 0; /* -- */ backup_mesh.fdata = mesh->fdata; - memset(&mesh->fdata, 0, sizeof(CustomData)); + CustomData_reset(&mesh->fdata); /* -- */ backup_mesh.pdata = mesh->pdata; - memset(&mesh->pdata, 0, sizeof(CustomData)); + CustomData_reset(&mesh->pdata); /* -- */ backup_mesh.ldata = mesh->ldata; - memset(&mesh->ldata, 0, sizeof(CustomData)); + CustomData_reset(&mesh->ldata); /* -- */ backup_mesh.edit_btmesh = mesh->edit_btmesh; mesh->edit_btmesh = NULL; |