- Timestamp:
- 05/16/07 08:37:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreRenderingRun.cpp
r2375 r2379 43 43 if(triggerName != "")//we have a trigger here 44 44 { 45 OgreTechniqueGroup* tg= (OgreTechniqueGroup*)rend->getRenderTechniqueGroup();46 if( tg)45 OgreTechniqueGroup* TG = (OgreTechniqueGroup*)rend->getRenderTechniqueGroup(); 46 if(TG) 47 47 { 48 String triggeredMaterial = tg->getMaterialNameForTrigger(triggerName);48 String triggeredMaterial = TG->getMaterialNameForTrigger(triggerName); 49 49 if(triggeredMaterial != "")//a trigger is associated 50 50 materialToSet = triggeredMaterial; … … 69 69 if(triggerName != "")//we have a trigger here 70 70 { 71 String triggeredMaterial = 72 ((OgreTechniqueGroup*)rend->getRenderTechniqueGroup()) 73 ->getMaterialNameForTrigger(triggerName); 74 if(triggeredMaterial != "")//a trigger is associated 75 materialToSet = triggeredMaterial; 71 OgreTechniqueGroup* TG = (OgreTechniqueGroup*)rend->getRenderTechniqueGroup(); 72 if(TG) 73 { 74 String triggeredMaterial = TG->getMaterialNameForTrigger(triggerName); 75 if(triggeredMaterial != "")//a trigger is associated 76 materialToSet = triggeredMaterial; 77 } 76 78 } 77 79 rend->setMaterialName(materialToSet);
Note: See TracChangeset
for help on using the changeset viewer.