Changeset 10924 for OpenSceneGraph/trunk/src/osg/Texture3D.cpp
- Timestamp:
- 01/07/10 13:14:47 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osg/Texture3D.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/Texture3D.cpp
r10867 r10924 14 14 #include <osg/Texture3D> 15 15 #include <osg/State> 16 #include <osg/ImageSequence>17 16 #include <osg/GLU> 18 17 #include <osg/Notify> … … 110 109 if (_image == image) return; 111 110 112 if ( dynamic_cast<osg::ImageSequence*>(_image.get()))111 if (_image.valid() && _image->requiresUpdateCall()) 113 112 { 114 113 setUpdateCallback(0); … … 122 121 123 122 _image = image; 124 125 if ( dynamic_cast<osg::ImageSequence*>(_image.get()))126 { 127 setUpdateCallback(new Image Sequence::UpdateCallback());123 124 if (_image.valid() && _image->requiresUpdateCall()) 125 { 126 setUpdateCallback(new Image::UpdateCallback()); 128 127 setDataVariance(osg::Object::DYNAMIC); 129 128 }
