diff --git a/components/sceneutil/serialize.cpp b/components/sceneutil/serialize.cpp index 23567353cc..969fa66689 100644 --- a/components/sceneutil/serialize.cpp +++ b/components/sceneutil/serialize.cpp @@ -64,6 +64,15 @@ public: } }; +class CameraRelativeTransformSerializer : public osgDB::ObjectWrapper +{ +public: + CameraRelativeTransformSerializer() + : osgDB::ObjectWrapper(createInstanceFunc, "MWRender::CameraRelativeTransform", "osg::Object osg::Node osg::Group MWRender::CameraRelativeTransform") + { + } +}; + osgDB::ObjectWrapper* makeDummySerializer(const std::string& classname) { return new osgDB::ObjectWrapper(createInstanceFunc, classname, "osg::Object"); @@ -80,17 +89,18 @@ void registerSerializers() osgDB::Registry::instance()->getObjectWrapperManager()->addWrapper(new FrameSwitchSerializer); osgDB::Registry::instance()->getObjectWrapperManager()->addWrapper(new RigGeometrySerializer); osgDB::Registry::instance()->getObjectWrapperManager()->addWrapper(new LightManagerSerializer); + osgDB::Registry::instance()->getObjectWrapperManager()->addWrapper(new CameraRelativeTransformSerializer); // ignore the below for now to avoid warning spam const char* ignore[] = { "MWRender::PtrHolder", - "MWRender::CameraRelativeTransform", "Resource::TemplateRef", "SceneUtil::LightListCallback", "SceneUtil::LightManagerUpdateCallback", "SceneUtil::UpdateRigBounds", "SceneUtil::UpdateRigGeometry", "SceneUtil::LightSource", + "SceneUtil::StateSetUpdater", "NifOsg::NodeUserData", "NifOsg::FlipController", "NifOsg::KeyframeController", @@ -104,6 +114,8 @@ void registerSerializers() "NifOsg::UpdateMorphGeometry", "osgMyGUI::Drawable", "osg::DrawCallback", + "osgOQ::ClearQueriesCallback", + "osgOQ::RetrieveQueriesCallback", "osg::DummyObject" }; for (size_t i=0; i