collada exporter: forgot one place to update the id

This commit is contained in:
rdiankov 2011-01-06 04:22:15 +00:00
parent 0dcc5b0f8b
commit 7512d26196
1 changed files with 2 additions and 2 deletions

View File

@ -494,7 +494,7 @@ protected:
abmvalue->setSid(_ComputeId(str(boost::format("%s_%s")%asmid%kas.valuesid)).c_str()); abmvalue->setSid(_ComputeId(str(boost::format("%s_%s")%asmid%kas.valuesid)).c_str());
daeSafeCast<domKinematics_newparam::domSIDREF>(abmvalue->add(COLLADA_ELEMENT_SIDREF))->setValue(str(boost::format("%s/%s")%askid%kas.valuesid).c_str()); daeSafeCast<domKinematics_newparam::domSIDREF>(abmvalue->add(COLLADA_ELEMENT_SIDREF))->setValue(str(boost::format("%s/%s")%askid%kas.valuesid).c_str());
domKinematics_bindRef abvalue = daeSafeCast<domKinematics_bind>(ias->add(COLLADA_ELEMENT_BIND)); domKinematics_bindRef abvalue = daeSafeCast<domKinematics_bind>(ias->add(COLLADA_ELEMENT_BIND));
valuesid = str(boost::format("%s_%s")%assym%kas.valuesid); valuesid = _ComputeId(str(boost::format("%s_%s")%assym%kas.valuesid));
abvalue->setSymbol(valuesid.c_str()); abvalue->setSymbol(valuesid.c_str());
daeSafeCast<domKinematics_param>(abvalue->add(COLLADA_ELEMENT_PARAM))->setRef(str(boost::format("%s/%s_%s")%asmid%asmid%kas.valuesid).c_str()); daeSafeCast<domKinematics_param>(abvalue->add(COLLADA_ELEMENT_PARAM))->setRef(str(boost::format("%s/%s_%s")%asmid%asmid%kas.valuesid).c_str());
} }
@ -669,7 +669,7 @@ protected:
// create the formulas for all mimic joints // create the formulas for all mimic joints
FOREACHC(itjoint, _robot.joints_) { FOREACHC(itjoint, _robot.joints_) {
string jointsid = itjoint->second->name; string jointsid = _ComputeId(itjoint->second->name);
boost::shared_ptr<urdf::Joint> pjoint = itjoint->second; boost::shared_ptr<urdf::Joint> pjoint = itjoint->second;
if( !pjoint->mimic ) { if( !pjoint->mimic ) {
continue; continue;