Ignore:
Timestamp:
10/19/06 12:52:41 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreRenderingRun.cpp

    r1644 r1646  
    123123{ 
    124124        SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager(); 
    125         if(sm->getTypeName()==TerrainSceneManagerFactory::FACTORY_TYPE_NAME) 
     125        if(sm->getTypeName() == "TerrainSceneManager") 
    126126        { 
    127127                terrainMaterial = ((TerrainSceneManager*)sm)->getTerrainMaterial()->getName(); 
     
    186186{ 
    187187        SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager(); 
    188         if(sm->getTypeName()==TerrainSceneManagerFactory::FACTORY_TYPE_NAME) 
     188        if(sm->getTypeName()== "TerrainSceneManager") 
    189189                ((TerrainSceneManager*)sm)->setCustomMaterial(terrainMaterial); 
    190190         
Note: See TracChangeset for help on using the changeset viewer.