mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 22:45:36 +00:00
Serialization fixes
Make sure NifOsg::MatrixTransform serialization behaves as intended Add a dummy serializer for NifOsg::UVController
This commit is contained in:
parent
3b55d657e5
commit
cc791af0f5
1 changed files with 4 additions and 2 deletions
|
@ -1,9 +1,10 @@
|
||||||
#include "serialize.hpp"
|
#include "serialize.hpp"
|
||||||
|
|
||||||
#include <osg/MatrixTransform>
|
|
||||||
#include <osgDB/ObjectWrapper>
|
#include <osgDB/ObjectWrapper>
|
||||||
#include <osgDB/Registry>
|
#include <osgDB/Registry>
|
||||||
|
|
||||||
|
#include <components/nifosg/matrixtransform.hpp>
|
||||||
|
|
||||||
#include <components/sceneutil/positionattitudetransform.hpp>
|
#include <components/sceneutil/positionattitudetransform.hpp>
|
||||||
#include <components/sceneutil/skeleton.hpp>
|
#include <components/sceneutil/skeleton.hpp>
|
||||||
#include <components/sceneutil/riggeometry.hpp>
|
#include <components/sceneutil/riggeometry.hpp>
|
||||||
|
@ -79,7 +80,7 @@ class MatrixTransformSerializer : public osgDB::ObjectWrapper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MatrixTransformSerializer()
|
MatrixTransformSerializer()
|
||||||
: osgDB::ObjectWrapper(createInstanceFunc<osg::MatrixTransform>, "NifOsg::MatrixTransform", "osg::Object osg::Node osg::Transform osg::MatrixTransform NifOsg::MatrixTransform")
|
: osgDB::ObjectWrapper(createInstanceFunc<NifOsg::MatrixTransform>, "NifOsg::MatrixTransform", "osg::Object osg::Node osg::Transform osg::MatrixTransform NifOsg::MatrixTransform")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -141,6 +142,7 @@ void registerSerializers()
|
||||||
"NifOsg::StaticBoundingBoxCallback",
|
"NifOsg::StaticBoundingBoxCallback",
|
||||||
"NifOsg::GeomMorpherController",
|
"NifOsg::GeomMorpherController",
|
||||||
"NifOsg::UpdateMorphGeometry",
|
"NifOsg::UpdateMorphGeometry",
|
||||||
|
"NifOsg::UVController",
|
||||||
"osgMyGUI::Drawable",
|
"osgMyGUI::Drawable",
|
||||||
"osg::DrawCallback",
|
"osg::DrawCallback",
|
||||||
"osgOQ::ClearQueriesCallback",
|
"osgOQ::ClearQueriesCallback",
|
||||||
|
|
Loading…
Reference in a new issue