From 935a5c4e22d767892f0a6d2daa139093c96f6c50 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 4 Jul 2016 20:26:28 +0100 Subject: [PATCH] Added version guard around new parameter serializer --- src/osgWrappers/serializers/osgAnimation/RigGeometry.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/osgWrappers/serializers/osgAnimation/RigGeometry.cpp b/src/osgWrappers/serializers/osgAnimation/RigGeometry.cpp index 4d473366a..2787ec91c 100644 --- a/src/osgWrappers/serializers/osgAnimation/RigGeometry.cpp +++ b/src/osgWrappers/serializers/osgAnimation/RigGeometry.cpp @@ -72,5 +72,9 @@ REGISTER_OBJECT_WRAPPER( osgAnimation_RigGeometry, { ADD_USER_SERIALIZER( InfluenceMap ); // _vertexInfluenceMap ADD_OBJECT_SERIALIZER( SourceGeometry, osg::Geometry, NULL ); // _geometry - ADD_OBJECT_SERIALIZER( RigTransformImplementation, osgAnimation::RigTransform, NULL ); // _geometry + + { + UPDATE_TO_VERSION_SCOPED( 145 ) + ADD_OBJECT_SERIALIZER( RigTransformImplementation, osgAnimation::RigTransform, NULL ); // _geometry + } }