[Bf-blender-cvs] [e921e0f0af2] master: Alembic export: consider mesh with animation data as "animated"

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


Commit: e921e0f0af25be23895fed01bc18ddf1fbcc692a
Author: Sybren A. Stüvel
Date:   Wed May 24 12:38:17 2017 +0200
Branches: master
https://developer.blender.org/rBe921e0f0af25be23895fed01bc18ddf1fbcc692a

Alembic export: consider mesh with animation data as "animated"

This allows you to put any kind of animation data on the mesh, and its
shape will be exported on each timekey. Note that this timekey is unrelated
to the animation data (so we don't export on each keyframe, for example).

A practical example is the addition of an animated custom property to
trigger the export of animated mesh data. The mesh data can then be created
from any source, like Python scripts.

Not only is this useful in itself, it also provides a workaround for one
of the two issues described in T51351.

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

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

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

diff --git a/source/blender/alembic/intern/abc_mesh.cc b/source/blender/alembic/intern/abc_mesh.cc
index 32795e70e92..9a4ca6f99a8 100644
--- a/source/blender/alembic/intern/abc_mesh.cc
+++ b/source/blender/alembic/intern/abc_mesh.cc
@@ -355,7 +355,7 @@ bool AbcMeshWriter::isAnimated() const
 		md = md->next;
 	}
 
-	return false;
+	return me->adt != NULL;
 }
 
 void AbcMeshWriter::do_write()




More information about the Bf-blender-cvs mailing list