Complete animating LOD objects
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10323 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -1244,8 +1244,11 @@ void Track::loadTrackModel(World* parent, unsigned int mode_id)
|
||||
{
|
||||
std::vector<TrackObject*>& queue = track_objects[ lod_nodes[n]->getGroupName() ];
|
||||
assert( queue.size() > 0 );
|
||||
queue[ queue.size() - 1 ]->setNode( lod_nodes[n] );
|
||||
TrackObject* obj = queue[ queue.size() - 1 ];
|
||||
obj->setNode( lod_nodes[n] );
|
||||
queue.erase( queue.end() - 1 );
|
||||
|
||||
m_track_object_manager->manualInsertObject( obj );
|
||||
}
|
||||
|
||||
track_objects.clear();
|
||||
|
||||
@@ -72,6 +72,11 @@ public:
|
||||
|
||||
void removeObject(PhysicalObject* who);
|
||||
|
||||
void manualInsertObject(TrackObject* obj)
|
||||
{
|
||||
m_all_objects.push_back(obj);
|
||||
}
|
||||
|
||||
/** Get the queue of LOD objects that are waiting to be assigned a scene node */
|
||||
std::map<std::string, std::vector<TrackObject*> >& getLodObjects() { return m_lod_objects; }
|
||||
}; // class TrackObjectManager
|
||||
|
||||
Reference in New Issue
Block a user