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:
Kévin Dietrich 2016-09-05 03:32:36 +02:00 committed by Sergey Sharybin
parent 184c781657
commit 4be5fae30c
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ AbcHairWriter::AbcHairWriter(Scene *scene,
{
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();
}

View File

@ -67,7 +67,7 @@ AbcPointsWriter::AbcPointsWriter(Scene *scene,
{
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();
}