Bugfix with new lod

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14895 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2014-01-02 23:44:13 +00:00
parent 10947608d8
commit d095e14039

View File

@ -609,6 +609,7 @@ void Track::convertTrackToBullet(scene::ISceneNode *node)
"This track contains an empty LOD group."); "This track contains an empty LOD group.");
return; return;
} }
node->updateAbsolutePosition();
} }
node->updateAbsolutePosition(); node->updateAbsolutePosition();
@ -1084,6 +1085,7 @@ bool Track::loadMainTrack(const XMLNode &root)
node->setPosition(xyz); node->setPosition(xyz);
node->setRotation(hpr); node->setRotation(hpr);
node->setScale(scale); node->setScale(scale);
node->updateAbsolutePosition();
m_all_nodes.push_back( node ); m_all_nodes.push_back( node );
} }