- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgWrappers/serializers/osg/PagedLOD.cpp
r12292 r13041 54 54 } 55 55 is >> osgDB::END_BRACKET; 56 56 57 57 size = 0; is >> osgDB::PROPERTY("PriorityList") >> size >> osgDB::BEGIN_BRACKET; 58 58 for ( unsigned int i=0; i<size; ++i ) … … 60 60 float offset, scale; 61 61 is >> offset >> scale; 62 62 63 63 node.setPriorityOffset( i, offset ); 64 64 node.setPriorityScale( i, scale ); … … 78 78 } 79 79 os << osgDB::END_BRACKET << std::endl; 80 80 81 81 size = node.getNumPriorityOffsets(); 82 82 os << osgDB::PROPERTY("PriorityList") << size << osgDB::BEGIN_BRACKET << std::endl; … … 115 115 dynamicLoadedSize++; 116 116 } 117 117 118 118 unsigned int realSize = size-dynamicLoadedSize; os << realSize; 119 119 if ( realSize>0 ) … … 138 138 { 139 139 // Note: osg::Group is not in the list to prevent recording dynamic loaded children 140 140 141 141 ADD_USER_SERIALIZER( DatabasePath ); // _databasePath 142 142 ADD_UINT_SERIALIZER( FrameNumberOfLastTraversal, 0 ); // _frameNumberOfLastTraversal, note, not required, removed from soversion 70 onwwards, see below … … 148 148 UPDATE_TO_VERSION( 70 ) 149 149 { 150 REMOVE_SERIALIZER( FrameNumberOfLastTraversal ); 150 REMOVE_SERIALIZER( FrameNumberOfLastTraversal ); 151 151 } 152 152 153 153 154 154 155 155 }
