Show
Ignore:
Timestamp:
01/31/09 22:45:47 (6 years ago)
Author:
robert
Message:

Fixed handling of TransferFunctionProperty?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgvolume/osgvolume.cpp

    r9580 r9613  
    12701270        osgVolume::SampleDensityProperty* sd = new osgVolume::SampleDensityProperty(0.005); 
    12711271        osgVolume::TransparencyProperty* tp = new osgVolume::TransparencyProperty(1.0); 
    1272         osgVolume::TransferFunctionProperty* tfp = new osgVolume::TransferFunctionProperty(transferFunction.get()); 
     1272        osgVolume::TransferFunctionProperty* tfp = transferFunction.valid() ? new osgVolume::TransferFunctionProperty(transferFunction.get()) : 0; 
    12731273 
    12741274        {