Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10316


Ignore:
Timestamp:
Mar 15, 2015, 3:22:18 PM (10 years ago)
Author:
smerkli
Message:

only load debug drawer if graphics is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/Scene.cc

    r10216 r10316  
    205205            this->physicalWorld_->setGravity(multi_cast<btVector3>(this->gravity_));
    206206
    207             this->debugDrawer_ = new BulletDebugDrawer(this->sceneManager_);
    208             this->physicalWorld_->setDebugDrawer(this->debugDrawer_);
     207            if (GameMode::showsGraphics() && this->sceneManager_)
     208            {
     209                this->debugDrawer_ = new BulletDebugDrawer(this->sceneManager_);
     210                this->physicalWorld_->setDebugDrawer(this->debugDrawer_);
     211            }
    209212
    210213            // also set the collision callback variable.
Note: See TracChangeset for help on using the changeset viewer.