Changeset 578


Ignore:
Timestamp:
08/23/11 11:00:11 (9 months ago)
Author:
ddangelo
Message:

#define switch to circumvent osg bug between 2.x (at least 2.9.5 and 2.8) and 3.0 added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-osg/src/avango/osg/particle/PrecipitationEffect.cpp

    r528 r578  
    2525 
    2626#include <osg/Fog> 
     27#include <osg/Version> 
    2728#include <avango/osg/particle/PrecipitationEffect.h> 
    2829#include <avango/osg/ObjectLink.h> 
     
    242243av::osg::particle::PrecipitationEffect::getMaximumParticleDensityCB(const av::SFFloat::GetValueEvent& event) 
    243244{ 
     245#if OSG_VERSION_MAJOR == 3 
     246  *(event.getValuePtr()) = mOsgPrecipitationEffect->getMaximumParticleDensity(); 
     247#elif OSG_VERSION_MAJOR == 2 
    244248  *(event.getValuePtr()) = mOsgPrecipitationEffect->setMaximumParticleDensity(); 
     249#endif 
    245250} 
    246251 
Note: See TracChangeset for help on using the changeset viewer.