mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +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,9 +1,10 @@
|
||||
#include "serialize.hpp"
|
||||
|
||||
#include <osg/MatrixTransform>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/Registry>
|
||||
|
||||
#include <components/nifosg/matrixtransform.hpp>
|
||||
|
||||
#include <components/sceneutil/positionattitudetransform.hpp>
|
||||
#include <components/sceneutil/skeleton.hpp>
|
||||
#include <components/sceneutil/riggeometry.hpp>
|
||||
@ -79,7 +80,7 @@ class MatrixTransformSerializer : public osgDB::ObjectWrapper
|
||||
{
|
||||
public:
|
||||
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::GeomMorpherController",
|
||||
"NifOsg::UpdateMorphGeometry",
|
||||
"NifOsg::UVController",
|
||||
"osgMyGUI::Drawable",
|
||||
"osg::DrawCallback",
|
||||
"osgOQ::ClearQueriesCallback",
|
||||
|
Loading…
x
Reference in New Issue
Block a user