[Bf-blender-cvs] [f4f7ab7] alembic_pointcache: Sanity check when trying to write cloth cache, the cloth data may not actually exist.
Lukas Tönne
noreply at git.blender.org
Fri Feb 13 17:56:07 CET 2015
Commit: f4f7ab735be862a55a8fe7ba25c0043dd87f4403
Author: Lukas Tönne
Date: Fri Feb 13 17:18:51 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rBf4f7ab735be862a55a8fe7ba25c0043dd87f4403
Sanity check when trying to write cloth cache, the cloth data may not
actually exist.
===================================================================
M source/blender/pointcache/alembic/abc_cloth.cpp
===================================================================
diff --git a/source/blender/pointcache/alembic/abc_cloth.cpp b/source/blender/pointcache/alembic/abc_cloth.cpp
index 0efc731..4b629aa 100644
--- a/source/blender/pointcache/alembic/abc_cloth.cpp
+++ b/source/blender/pointcache/alembic/abc_cloth.cpp
@@ -90,6 +90,8 @@ static P3fArraySample create_sample_goal_positions(Cloth *cloth, std::vector<V3f
void AbcClothWriter::write_sample()
{
Cloth *cloth = m_clmd->clothObject;
+ if (!cloth)
+ return;
OPointsSchema &schema = m_points.getSchema();
More information about the Bf-blender-cvs
mailing list