Fix T49249: Alembic export with multiple hair systems crash blender

Crash was due to a name collision in Alembic objects caused by the fact
that names derive from the one of the Blender object. An object having
multiple particles system would thus give its name to various
subobjects.

Now use the name of the particles system for the Alembic object.
This commit is contained in:
2016-09-05 03:32:36 +02:00
parent 0351e701ce
commit 2024cd09a0
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ AbcHairWriter::AbcHairWriter(Scene *scene,
{ {
m_psys = psys; m_psys = psys;
OCurves curves(parent->alembicXform(), m_name, m_time_sampling); OCurves curves(parent->alembicXform(), psys->name, m_time_sampling);
m_schema = curves.getSchema(); m_schema = curves.getSchema();
} }

View File

@@ -67,7 +67,7 @@ AbcPointsWriter::AbcPointsWriter(Scene *scene,
{ {
m_psys = psys; m_psys = psys;
OPoints points(parent->alembicXform(), m_name, m_time_sampling); OPoints points(parent->alembicXform(), psys->name, m_time_sampling);
m_schema = points.getSchema(); m_schema = points.getSchema();
} }