| | 1002 | #if 0 |
| | 1003 | if (imageSequence->getMode()==osg::ImageSequence::PAGE_AND_DISCARD_USED_IMAGES) |
| | 1004 | { |
| | 1005 | |
| | 1006 | if (_options.valid()) |
| | 1007 | { |
| | 1008 | OSG_NOTICE<<"Object cache usage _options "<<options->getObjectCacheHint()<<std::endl; |
| | 1009 | } |
| | 1010 | else |
| | 1011 | { |
| | 1012 | OSG_NOTICE<<"No Object _options assigned"<<std::endl; |
| | 1013 | } |
| | 1014 | |
| | 1015 | |
| | 1016 | osg::ref_ptr<osgDB::Options> options = _options.valid() ? _options->cloneOptions() : (new osgDB::Options); |
| | 1017 | if (!imageData.options.empty()) |
| | 1018 | { |
| | 1019 | options->setOptionString(imageData.options); |
| | 1020 | } |
| | 1021 | OSG_NOTICE<<"Disabling object cache usage"<<std::endl; |
| | 1022 | options->setObjectCacheHint(osgDB::Options::CACHE_NONE); |
| | 1023 | imageSequence->setReadOptions(options); |
| | 1024 | } |
| | 1025 | #endif |