Changeset 1646 for GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src
- Timestamp:
- 10/19/06 12:52:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreRenderingRun.cpp
r1644 r1646 123 123 { 124 124 SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager(); 125 if(sm->getTypeName() ==TerrainSceneManagerFactory::FACTORY_TYPE_NAME)125 if(sm->getTypeName() == "TerrainSceneManager") 126 126 { 127 127 terrainMaterial = ((TerrainSceneManager*)sm)->getTerrainMaterial()->getName(); … … 186 186 { 187 187 SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager(); 188 if(sm->getTypeName()== TerrainSceneManagerFactory::FACTORY_TYPE_NAME)188 if(sm->getTypeName()== "TerrainSceneManager") 189 189 ((TerrainSceneManager*)sm)->setCustomMaterial(terrainMaterial); 190 190
Note: See TracChangeset
for help on using the changeset viewer.