Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 8, 2008, 5:26:49 PM (16 years ago)
Author:
rgrieder
Message:

Fixed bug in dedicated mode: Scene nodes need an update.
—> Made Scene tickable.

Location:
code/branches/objecthierarchy/src/orxonox/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/objects/Scene.cc

    r2112 r2157  
    164164        return 0;
    165165    }
     166
     167    void Scene::tick(float dt)
     168    {
     169        if (!Core::showsGraphics())
     170        {
     171            // We need to update the scene nodes if we don't render
     172            this->rootSceneNode_->_update(true, false);
     173        }
     174    }
    166175}
  • code/branches/objecthierarchy/src/orxonox/objects/Scene.h

    r2112 r2157  
    3535#include "core/BaseObject.h"
    3636#include "util/Math.h"
     37#include "objects/Tickable.h"
    3738
    3839namespace orxonox
    3940{
    40     class _OrxonoxExport Scene : public BaseObject, public Synchronisable
     41    class _OrxonoxExport Scene : public BaseObject, public Synchronisable, public Tickable
    4142    {
    4243        public:
     
    6465                { return this->bShadows_; }
    6566
     67            virtual void tick(float dt);
     68
    6669        private:
    6770            void addObject(BaseObject* object);
Note: See TracChangeset for help on using the changeset viewer.