Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2008, 7:21:17 PM (15 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/Billboard.cc

    r2485 r2537  
    3434#include "core/CoreIncludes.h"
    3535#include "core/XMLPort.h"
     36#include "core/Core.h"
    3637#include "objects/Scene.h"
    3738
     
    8081        if (!this->billboard_.getBillboardSet())
    8182        {
    82             if (this->getScene() && this->getScene()->getSceneManager())
     83            if (this->getScene() && Core::showsGraphics())
    8384            {
    8485                this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->material_, this->colour_, 1);
     
    9798        {
    9899/*
    99             if (this->getScene() && this->getScene()->getSceneManager() && (this->material_ != ""))
     100            if (this->getScene() && Core::showsGraphics() && (this->material_ != ""))
    100101            {
    101102                this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->material_, this->colour_, 1);
Note: See TracChangeset for help on using the changeset viewer.