Ignore:
Timestamp:
10/19/06 13:04:47 (18 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

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

    r1646 r1647  
    123123{ 
    124124        SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager(); 
    125         if(sm->getTypeName() == "TerrainSceneManager") 
    126         { 
    127                 terrainMaterial = ((TerrainSceneManager*)sm)->getTerrainMaterial()->getName(); 
    128                 ((TerrainSceneManager*)sm)->setCustomMaterial(materialName); 
    129         } 
    130  
     125         
    131126        RenderQueue::QueueGroupIterator queueIt = rq->_getQueueGroupIterator(); 
    132127    
     
    168163        SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager(); 
    169164         
     165        if(sm->getTypeName() == "TerrainSceneManager") 
     166        { 
     167                terrainMaterial = ((TerrainSceneManager*)sm)->getTerrainMaterial()->getName(); 
     168                ((TerrainSceneManager*)sm)->setCustomMaterial(materialName); 
     169        } 
     170 
    170171        RenderQueue* rq = sm->getRenderQueue(); 
    171172        rq->clear(); 
Note: See TracChangeset for help on using the changeset viewer.