diff --git a/src/animations/animation_base.cpp b/src/animations/animation_base.cpp index cd51bf3c1..784068288 100644 --- a/src/animations/animation_base.cpp +++ b/src/animations/animation_base.cpp @@ -33,6 +33,8 @@ AnimationBase::AnimationBase(const XMLNode &node) node.get("fps", &fps); for(unsigned int i=0; igetName() == "animated-texture") + continue; Ipo *ipo = new Ipo(*node.getNode(i), fps); m_all_ipos.push_back(ipo); } diff --git a/src/tracks/track_object_presentation.cpp b/src/tracks/track_object_presentation.cpp index 266320998..ca4ddfadd 100644 --- a/src/tracks/track_object_presentation.cpp +++ b/src/tracks/track_object_presentation.cpp @@ -254,7 +254,7 @@ TrackObjectPresentationMesh::TrackObjectPresentationMesh(const XMLNode& xml_node else { m_mesh = irr_driver->getMesh(model_name); - + if (tangent) { scene::IMeshManipulator* manip = irr_driver->getVideoDriver()->getMeshManipulator(); @@ -368,6 +368,9 @@ void TrackObjectPresentationMesh::init(const XMLNode* xml_node, scene::ISceneNod m_node = irr_driver->addMesh(m_mesh, parent); m_frame_start = 0; m_frame_end = 0; + + if (World::getWorld() != NULL && World::getWorld()->getTrack() != NULL) + World::getWorld()->getTrack()->handleAnimatedTextures(m_node, *xml_node); } //#ifdef DEBUG // std::string debug_name = model_name+" (track-object)";