From a3b7a12fe72dfecd8ecd0b693b8e680e45eed586 Mon Sep 17 00:00:00 2001 From: Nat Meo Date: Thu, 25 Apr 2019 14:26:28 -0400 Subject: [PATCH] Bug #4971: OpenMW-CS: Make rotations display as degrees instead of radians --- CHANGELOG.md | 1 + apps/opencs/model/world/columnimp.hpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b0366751..c2ce28580 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,7 @@ Bug #4964: Multiple effect spell projectile sounds play louder than vanilla Bug #4965: Global light attenuation settings setup is lacking Bug #4969: "Miss" sound plays for any actor + Bug #4971: OpenMW-CS: Make rotations display as degrees instead of radians Bug #4972: Player is able to use quickkeys while disableplayerfighting is active Bug #4979: AiTravel maximum range depends on "actors processing range" setting Bug #4980: Drowning mechanics is applied for actors indifferently from distance to player diff --git a/apps/opencs/model/world/columnimp.hpp b/apps/opencs/model/world/columnimp.hpp index cd2a4c79e..87690423f 100644 --- a/apps/opencs/model/world/columnimp.hpp +++ b/apps/opencs/model/world/columnimp.hpp @@ -1376,7 +1376,7 @@ namespace CSMWorld virtual QVariant get (const Record& record) const { const ESM::Position& position = record.get().*mPosition; - return position.rot[mIndex]; + return osg::RadiansToDegrees(position.rot[mIndex]); } virtual void set (Record& record, const QVariant& data) @@ -1385,7 +1385,7 @@ namespace CSMWorld ESM::Position& position = record2.*mPosition; - position.rot[mIndex] = data.toFloat(); + position.rot[mIndex] = osg::DegreesToRadians(data.toFloat()); record.setModified (record2); }