From cc791af0f5102445bb9a5547a03c8dc4edfe25c0 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Sat, 11 Jul 2020 17:55:15 +0300 Subject: [PATCH] Serialization fixes Make sure NifOsg::MatrixTransform serialization behaves as intended Add a dummy serializer for NifOsg::UVController --- components/sceneutil/serialize.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/sceneutil/serialize.cpp b/components/sceneutil/serialize.cpp index 398d9cc0cc..1577f080f3 100644 --- a/components/sceneutil/serialize.cpp +++ b/components/sceneutil/serialize.cpp @@ -1,9 +1,10 @@ #include "serialize.hpp" -#include #include #include +#include + #include #include #include @@ -79,7 +80,7 @@ class MatrixTransformSerializer : public osgDB::ObjectWrapper { public: MatrixTransformSerializer() - : osgDB::ObjectWrapper(createInstanceFunc, "NifOsg::MatrixTransform", "osg::Object osg::Node osg::Transform osg::MatrixTransform NifOsg::MatrixTransform") + : osgDB::ObjectWrapper(createInstanceFunc, "NifOsg::MatrixTransform", "osg::Object osg::Node osg::Transform osg::MatrixTransform NifOsg::MatrixTransform") { } }; @@ -141,6 +142,7 @@ void registerSerializers() "NifOsg::StaticBoundingBoxCallback", "NifOsg::GeomMorpherController", "NifOsg::UpdateMorphGeometry", + "NifOsg::UVController", "osgMyGUI::Drawable", "osg::DrawCallback", "osgOQ::ClearQueriesCallback",