From 4bd078a6db76e7c8a734b1bd3894d4eb8a580f50 Mon Sep 17 00:00:00 2001 From: Sam Hellawell Date: Fri, 19 Jul 2024 01:29:24 +0100 Subject: [PATCH] Return offset/angle by reference --- apps/openmw/mwrender/rotatecontroller.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwrender/rotatecontroller.hpp b/apps/openmw/mwrender/rotatecontroller.hpp index 8c37345b02..3d9f44c6a3 100644 --- a/apps/openmw/mwrender/rotatecontroller.hpp +++ b/apps/openmw/mwrender/rotatecontroller.hpp @@ -24,9 +24,9 @@ namespace MWRender void setOffset(const osg::Vec3f& offset); void setRotate(const osg::Quat& rotate); - const osg::Vec3f getOffset() const { return mOffset; } + const osg::Vec3f& getOffset() const { return mOffset; } - const osg::Quat getRotate() const { return mRotate; } + const osg::Quat& getRotate() const { return mRotate; } osg::Node* getRelativeTo() const { return mRelativeTo; }