[Bf-blender-cvs] [6715bfee92e] master: Alembic: Export mesh as mesh, even when it has no vertices.

Sybren A. Stüvel noreply at git.blender.org
Wed May 24 12:42:41 CEST 2017


Commit: 6715bfee92e72dd91a4bebd2fd81f817036f3a91
Author: Sybren A. Stüvel
Date:   Wed May 24 12:39:37 2017 +0200
Branches: master
https://developer.blender.org/rB6715bfee92e72dd91a4bebd2fd81f817036f3a91

Alembic: Export mesh as mesh, even when it has no vertices.

This makes it possible to have an animated / procedurally generated mesh
that starts empty and obtains data in later frames.

Fixes the export of an empty mesh with an Ocean Modifier, as described in
issue T51351.

===================================================================

M	source/blender/alembic/intern/abc_exporter.cc

===================================================================

diff --git a/source/blender/alembic/intern/abc_exporter.cc b/source/blender/alembic/intern/abc_exporter.cc
index 11c63461ab4..1fb59357f5d 100644
--- a/source/blender/alembic/intern/abc_exporter.cc
+++ b/source/blender/alembic/intern/abc_exporter.cc
@@ -580,7 +580,7 @@ void AbcExporter::createShapeWriter(Object *ob, Object *dupliObParent)
 		{
 			Mesh *me = static_cast<Mesh *>(ob->data);
 
-			if (!me || me->totvert == 0) {
+			if (!me) {
 				return;
 			}




More information about the Bf-blender-cvs mailing list