mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 15:40:32 +00:00
Fix C4589 msvc warning
Constructor of abstract class 'SceneUtil::KeyframeController' ignores initializer for virtual base class 'osg::Object'
This commit is contained in:
parent
ebdcb7acbd
commit
2d6e048d88
@ -71,7 +71,8 @@ KeyframeController::KeyframeController()
|
||||
}
|
||||
|
||||
KeyframeController::KeyframeController(const KeyframeController ©, const osg::CopyOp ©op)
|
||||
: SceneUtil::KeyframeController(copy, copyop)
|
||||
: osg::Object(copy, copyop)
|
||||
, SceneUtil::KeyframeController(copy)
|
||||
, SceneUtil::NodeCallback<KeyframeController, NifOsg::MatrixTransform*>(copy, copyop)
|
||||
, mRotations(copy.mRotations)
|
||||
, mXRotations(copy.mXRotations)
|
||||
|
@ -17,9 +17,8 @@ namespace SceneUtil
|
||||
public:
|
||||
KeyframeController() {}
|
||||
|
||||
KeyframeController(const KeyframeController& copy, const osg::CopyOp& copyop)
|
||||
: osg::Object(copy, copyop)
|
||||
, SceneUtil::Controller(copy) {}
|
||||
KeyframeController(const KeyframeController& copy)
|
||||
: SceneUtil::Controller(copy) {}
|
||||
|
||||
virtual osg::Vec3f getTranslation(float time) const { return osg::Vec3f(); }
|
||||
|
||||
|
@ -68,8 +68,11 @@ namespace SceneUtil
|
||||
traverse( node );
|
||||
}
|
||||
|
||||
OsgAnimationController::OsgAnimationController(const OsgAnimationController ©, const osg::CopyOp ©op) : SceneUtil::KeyframeController(copy, copyop), SceneUtil::NodeCallback<OsgAnimationController>(copy, copyop)
|
||||
, mEmulatedAnimations(copy.mEmulatedAnimations)
|
||||
OsgAnimationController::OsgAnimationController(const OsgAnimationController ©, const osg::CopyOp ©op)
|
||||
: osg::Object(copy, copyop)
|
||||
, SceneUtil::KeyframeController(copy)
|
||||
, SceneUtil::NodeCallback<OsgAnimationController>(copy, copyop)
|
||||
, mEmulatedAnimations(copy.mEmulatedAnimations)
|
||||
{
|
||||
mLinker = nullptr;
|
||||
for (const auto& mergedAnimationTrack : copy.mMergedAnimationTracks)
|
||||
|
Loading…
x
Reference in New Issue
Block a user