提交 2a31cf57 编写于 作者: R Rémi Arnaud

Merge pull request #409 from fl4re/fix/maya-geometry-instance-id

Fixed geometry instance id generation
......@@ -318,6 +318,13 @@ namespace COLLADAMaya
// Get the maya mesh id.
String mayaMeshId = mDocumentExporter->dagPathToColladaId ( dagPath );
if (dagPath.isInstanced())
{
MDagPathArray paths;
dagPath.getAllPathsTo(dagPath.node(), paths);
mayaMeshId = mDocumentExporter->dagPathToColladaId(paths[0]);
}
// Generate a COLLADA id for the new object.
String colladaMeshId = findColladaGeometryId ( mayaMeshId );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册