diff --git a/include/osgDB/Serializer b/include/osgDB/Serializer index 288eeaca6..a28dbcd53 100644 --- a/include/osgDB/Serializer +++ b/include/osgDB/Serializer @@ -582,6 +582,9 @@ public: ImageSerializer( const char* name, P* def, Getter gf, Setter sf ) : ParentType(name, def), _getter(gf), _setter(sf) {} + virtual bool set(osg::Object& obj, void* value) { C& object = OBJECT_CAST(obj); (object.*_setter)( *(reinterpret_cast(value)) ); return true; } + virtual bool get(const osg::Object& obj, void* value) { const C& object = OBJECT_CAST(obj);*(reinterpret_cast(value )) = (object.*_getter)(); return true; } + virtual bool read( InputStream& is, osg::Object& obj ) { C& object = OBJECT_CAST(obj); diff --git a/src/osgDB/PropertyInterface.cpp b/src/osgDB/PropertyInterface.cpp index 4003bb2fd..a0342678f 100644 --- a/src/osgDB/PropertyInterface.cpp +++ b/src/osgDB/PropertyInterface.cpp @@ -366,7 +366,6 @@ bool PropertyInterface::copyPropertyDataToObject(osg::Object* object, const std: bool PropertyInterface::copyPropertyObjectFromObject(const osg::Object* object, const std::string& propertyName, void* valuePtr, unsigned int valueSize, osgDB::BaseSerializer::Type valueType) { - OSG_NOTICE<<"PropertyInterface::copyPropertyObjectFromObject() Not Supported yet."<