Skip to content

Commit

Permalink
fixes a bug in loading COLLADA files(by Kakiuchi)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanehiro committed Jul 7, 2014
1 parent 2cab98f commit 8827cab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/ModelLoader/BodyInfoCollada_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2312,6 +2312,11 @@ class ColladaReader : public daeErrorHandler
if ( !! encoder_pulse ) {
plink->encoderPulse = boost::lexical_cast<double>(encoder_pulse->getCharData());
}
daeElement *nom_torque = domactuator->getChild("nominal_torque");
if ( !! nom_torque ) {
if(plink->climit.length() < 1) plink->climit.length(1);
plink->climit[0] = boost::lexical_cast<double>(nom_torque->getCharData()) / ( plink->gearRatio * plink->torqueConst );
}
return true;
}

Expand Down

0 comments on commit 8827cab

Please sign in to comment.