mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 06:23:52 +00:00
Merge branch 'issue-4971' into 'master'
Bug #4971: OpenMW-CS: Make rotations display as degrees instead of radians See merge request OpenMW/openmw!100
This commit is contained in:
commit
b77bd9cf9b
2 changed files with 3 additions and 2 deletions
|
@ -73,6 +73,7 @@
|
||||||
Bug #4964: Multiple effect spell projectile sounds play louder than vanilla
|
Bug #4964: Multiple effect spell projectile sounds play louder than vanilla
|
||||||
Bug #4965: Global light attenuation settings setup is lacking
|
Bug #4965: Global light attenuation settings setup is lacking
|
||||||
Bug #4969: "Miss" sound plays for any actor
|
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 #4972: Player is able to use quickkeys while disableplayerfighting is active
|
||||||
Bug #4979: AiTravel maximum range depends on "actors processing range" setting
|
Bug #4979: AiTravel maximum range depends on "actors processing range" setting
|
||||||
Bug #4980: Drowning mechanics is applied for actors indifferently from distance to player
|
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
|
virtual QVariant get (const Record<ESXRecordT>& record) const
|
||||||
{
|
{
|
||||||
const ESM::Position& position = record.get().*mPosition;
|
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)
|
virtual void set (Record<ESXRecordT>& record, const QVariant& data)
|
||||||
|
@ -1385,7 +1385,7 @@ namespace CSMWorld
|
||||||
|
|
||||||
ESM::Position& position = record2.*mPosition;
|
ESM::Position& position = record2.*mPosition;
|
||||||
|
|
||||||
position.rot[mIndex] = data.toFloat();
|
position.rot[mIndex] = osg::DegreesToRadians(data.toFloat());
|
||||||
|
|
||||||
record.setModified (record2);
|
record.setModified (record2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue