Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2008, 7:21:17 PM (16 years ago)
Author:
rgrieder
Message:
  • Removed a const_const that could be easily replaced
  • getScene()→getSceneManager() is non zero again in dedicated mode

—> PLEASE ALWAYS USE Core::showsGraphics() TO IDENTIFY EXACTLY THAT, NOT this→getScene()→getSceneManager().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/worldentities/triggers/Trigger.cc

    r2500 r2537  
    3636#include "core/ConsoleCommand.h"
    3737#include "core/XMLPort.h"
     38#include "core/Core.h"
    3839#include "objects/Scene.h"
    3940
     
    6667//    this->bUpdating_ = false;
    6768
    68     if (this->getScene() && this->getScene()->getSceneManager())
     69    if (this->getScene() && Core::showsGraphics())
    6970    {
    7071      this->debugBillboard_.setBillboardSet(this->getScene()->getSceneManager(), "Examples/Flare", ColourValue(1.0, 0.0, 0.0), 1);
Note: See TracChangeset for help on using the changeset viewer.