forked from blender/blender
Fix review comments #51
@ -26,18 +26,11 @@ void MeshData::init()
|
|||||||
ID_LOG(2, "");
|
ID_LOG(2, "");
|
||||||
|
|
||||||
Object *object = (Object *)id;
|
Object *object = (Object *)id;
|
||||||
if (object->type == OB_MESH && object->mode == OB_MODE_OBJECT &&
|
Mesh *mesh = BKE_object_to_mesh(nullptr, object, false);
|
||||||
BLI_listbase_is_empty(&object->modifiers))
|
if (mesh) {
|
||||||
{
|
write_submeshes(mesh);
|
||||||
write_submeshes((Mesh *)object->data);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
Mesh *mesh = BKE_object_to_mesh(nullptr, object, false);
|
|
||||||
if (mesh) {
|
|
||||||
write_submeshes(mesh);
|
|
||||||
}
|
|
||||||
BKE_object_to_mesh_clear(object);
|
|
||||||
}
|
}
|
||||||
|
BKE_object_to_mesh_clear(object);
|
||||||
|
|
||||||
write_transform();
|
write_transform();
|
||||||
write_materials();
|
write_materials();
|
||||||
|
Loading…
Reference in New Issue
Block a user