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:
parent
184c781657
commit
4be5fae30c
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue