Changeset 1647 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule
- Timestamp:
- 10/19/06 13:04:47 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreRenderingRun.cpp
r1646 r1647 123 123 { 124 124 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 131 126 RenderQueue::QueueGroupIterator queueIt = rq->_getQueueGroupIterator(); 132 127 … … 168 163 SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager(); 169 164 165 if(sm->getTypeName() == "TerrainSceneManager") 166 { 167 terrainMaterial = ((TerrainSceneManager*)sm)->getTerrainMaterial()->getName(); 168 ((TerrainSceneManager*)sm)->setCustomMaterial(materialName); 169 } 170 170 171 RenderQueue* rq = sm->getRenderQueue(); 171 172 rq->clear();
Note: See TracChangeset
for help on using the changeset viewer.