Merge branch 'issue-4971' into 'master'

Bug #4971: OpenMW-CS: Make rotations display as degrees instead of radians

See merge request OpenMW/openmw!100
pull/541/head
Alexei Dobrohotov 6 years ago
commit b77bd9cf9b

@ -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

@ -1376,7 +1376,7 @@ namespace CSMWorld
virtual QVariant get (const Record<ESXRecordT>& record) const
{
const ESM::Position& position = record.get().*mPosition;
return position.rot[mIndex];
return osg::RadiansToDegrees(position.rot[mIndex]);
}
virtual void set (Record<ESXRecordT>& 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);
}

Loading…
Cancel
Save