From 3e6d118d10fe6379b95cb7ee6dcb9e1524d2add3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 13 Jan 2018 16:43:42 +0000 Subject: [PATCH] Disabled the use of the GeometryFinishedObjectReadCallback in the Geometry serializer as this doesn't look it's needed anymore. --- src/osgWrappers/serializers/osg/Geometry.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osgWrappers/serializers/osg/Geometry.cpp b/src/osgWrappers/serializers/osg/Geometry.cpp index ce359c8c7..a5c308e14 100644 --- a/src/osgWrappers/serializers/osg/Geometry.cpp +++ b/src/osgWrappers/serializers/osg/Geometry.cpp @@ -3,6 +3,8 @@ #include #include +// #define USE_GEOMETRY_FINALIZER_CALLBACK + static void add_user_value_func_AttributeBinding(osgDB::IntLookup* lookup) { lookup->add("BIND_OFF",0); // ADD_USER_VALUE("ADD_USER_VALUE( BIND_OFF ); @@ -184,5 +186,7 @@ REGISTER_OBJECT_WRAPPER( Geometry, ADD_VECTOR_SERIALIZER( VertexAttribArrayList, osg::Geometry::ArrayList, osgDB::BaseSerializer::RW_OBJECT, 0 ); } +#ifdef USE_GEOMETRY_FINALIZER_CALLBACK wrapper->addFinishedObjectReadCallback( new GeometryFinishedObjectReadCallback() ); +#endif }