Skip to content

Commit

Permalink
Merge pull request #63 from YoheiKakiuchi/fix_export_collada
Browse files Browse the repository at this point in the history
fix for reducing CORBA communication
  • Loading branch information
fkanehiro committed Jul 22, 2015
2 parents 7287ca1 + b2f0c5f commit 37f9cc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/ModelLoader/ColladaWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -1216,6 +1216,7 @@ class ColladaWriter : public daeErrorHandler
string nodesid = str(boost::format("node%d")%ilink);
pnode->setSid(nodesid.c_str());
pnode->setName(plink.segments[0].name);
ShapeInfoSequence* curShapeInfoSeq = bodyInfo->shapes();

for(int igeom = 0; igeom < plink.shapeIndices.length(); ++igeom) {
string geomid = _GetGeometryId(bodyInfo, ilink,igeom);
Expand All @@ -1225,8 +1226,7 @@ class ColladaWriter : public daeErrorHandler
for(int i = 0; i < 12; ++i) {
transformMatrix[i] = tsi.transformMatrix[i];
}

domGeometryRef pdomgeom = WriteGeometry(bodyInfo,(*bodyInfo->shapes())[tsi.shapeIndex], transformMatrix, geomid);
domGeometryRef pdomgeom = WriteGeometry(bodyInfo,(*curShapeInfoSeq)[tsi.shapeIndex], transformMatrix, geomid);
domInstance_geometryRef pinstgeom = daeSafeCast<domInstance_geometry>(pnode->add(COLLADA_ELEMENT_INSTANCE_GEOMETRY));
pinstgeom->setUrl((string("#")+geomid).c_str());

Expand Down

0 comments on commit 37f9cc1

Please sign in to comment.