From Wang Rui, "I modified the Serializer header to add a UPDATE_TO_VERSION_SCOPED

macro, which could set version within brackets and reset it after
that. All related serializers are also modified so that the
backward-compatibility bug reported by Farshid can be fixed.
"

From Robert Osfield, removed the use of osg::Referenced and creating the proxy object on the heap.
This commit is contained in:
Robert Osfield
2012-10-09 16:05:50 +00:00
parent 16de7e9f33
commit 9fab99ddd9
8 changed files with 28 additions and 7 deletions

View File

@@ -42,9 +42,8 @@ REGISTER_OBJECT_WRAPPER( Object,
END_ENUM_SERIALIZER(); // _dataVariance
ADD_USER_SERIALIZER( UserData ); // _userData, deprecated
UPDATE_TO_VERSION( 77 )
{
UPDATE_TO_VERSION_SCOPED( 77 )
REMOVE_SERIALIZER( UserData );
ADD_OBJECT_SERIALIZER( UserDataContainer, osg::UserDataContainer, NULL );
}