提交 89acaec8 编写于 作者: J jerome-jacob

Fixed geometry instance id generation

上级 05bdf476
......@@ -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.
先完成此消息的编辑!
想要评论请 注册