From ad87289d59fc84306d67fb7d106e21f672dec905 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Sat, 11 Jul 2020 20:15:13 +0300 Subject: [PATCH] Fix NifOsg::MatrixTransform constructor inheritance --- components/nifosg/matrixtransform.cpp | 5 +++++ components/nifosg/matrixtransform.hpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/components/nifosg/matrixtransform.cpp b/components/nifosg/matrixtransform.cpp index 96450313de..b61df834b6 100644 --- a/components/nifosg/matrixtransform.cpp +++ b/components/nifosg/matrixtransform.cpp @@ -2,6 +2,11 @@ namespace NifOsg { + MatrixTransform::MatrixTransform() + : osg::MatrixTransform() + { + } + MatrixTransform::MatrixTransform(int recordIndex, const Nif::Transformation &trafo) : osg::MatrixTransform(trafo.toMatrix()) , mIndex(recordIndex) diff --git a/components/nifosg/matrixtransform.hpp b/components/nifosg/matrixtransform.hpp index 61d2438dee..86c9034911 100644 --- a/components/nifosg/matrixtransform.hpp +++ b/components/nifosg/matrixtransform.hpp @@ -11,7 +11,7 @@ namespace NifOsg class MatrixTransform : public osg::MatrixTransform { public: - using osg::MatrixTransform::MatrixTransform; + MatrixTransform(); MatrixTransform(int recordIndex, const Nif::Transformation &trafo); MatrixTransform(const MatrixTransform ©, const osg::CopyOp ©op);