From bc5e43ab600036afe820f9fad30acd5807120f89 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Thu, 5 May 2022 21:53:20 +0200 Subject: [PATCH] Fix copy paste error --- apps/openmw/mwscript/transformationextensions.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/openmw/mwscript/transformationextensions.cpp b/apps/openmw/mwscript/transformationextensions.cpp index c4e78dbc96..d87888c282 100644 --- a/apps/openmw/mwscript/transformationextensions.cpp +++ b/apps/openmw/mwscript/transformationextensions.cpp @@ -262,15 +262,15 @@ namespace MWScript { if (axis[0] == 'x') { - ret = osg::RadiansToDegrees(ptr.getRefData().getPosition().pos[0]); + ret = ptr.getRefData().getPosition().pos[0]; } else if (axis[0] == 'y') { - ret = osg::RadiansToDegrees(ptr.getRefData().getPosition().pos[1]); + ret = ptr.getRefData().getPosition().pos[1]; } else if (axis[0] == 'z') { - ret = osg::RadiansToDegrees(ptr.getRefData().getPosition().pos[2]); + ret = ptr.getRefData().getPosition().pos[2]; } } runtime.push(ret); @@ -348,15 +348,15 @@ namespace MWScript { if (axis[0] == 'x') { - ret = osg::RadiansToDegrees(ptr.getCellRef().getPosition().pos[0]); + ret = ptr.getCellRef().getPosition().pos[0]; } else if (axis[0] == 'y') { - ret = osg::RadiansToDegrees(ptr.getCellRef().getPosition().pos[1]); + ret = ptr.getCellRef().getPosition().pos[1]; } else if (axis[0] == 'z') { - ret = osg::RadiansToDegrees(ptr.getCellRef().getPosition().pos[2]); + ret = ptr.getCellRef().getPosition().pos[2]; } } runtime.push(ret);