mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 04:26:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			586 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			586 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "visitor.hpp"
 | |
| 
 | |
| #include <osgParticle/ParticleSystem>
 | |
| 
 | |
| #include <components/misc/stringops.hpp>
 | |
| 
 | |
| namespace SceneUtil
 | |
| {
 | |
| 
 | |
|     void FindByNameVisitor::apply(osg::Group &group)
 | |
|     {
 | |
|         if (Misc::StringUtils::ciEqual(group.getName(), mNameToFind))
 | |
|         {
 | |
|             mFoundNode = &group;
 | |
|             return;
 | |
|         }
 | |
|         traverse(group);
 | |
|     }
 | |
| 
 | |
|     void DisableFreezeOnCullVisitor::apply(osg::Drawable& drw)
 | |
|     {
 | |
|         if (osgParticle::ParticleSystem* partsys = dynamic_cast<osgParticle::ParticleSystem*>(&drw))
 | |
|             partsys->setFreezeOnCull(false);
 | |
|     }
 | |
| 
 | |
| }
 |