mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +00:00
Fix queueing of vanity mode toggle (Bug #3421)
This commit is contained in:
parent
ce91637cf9
commit
c47a679ac9
2 changed files with 4 additions and 1 deletions
|
@ -56,6 +56,7 @@ namespace MWRender
|
||||||
mMaxCameraDistance(192.f),
|
mMaxCameraDistance(192.f),
|
||||||
mDistanceAdjusted(false),
|
mDistanceAdjusted(false),
|
||||||
mVanityToggleQueued(false),
|
mVanityToggleQueued(false),
|
||||||
|
mVanityToggleQueuedValue(false),
|
||||||
mViewModeToggleQueued(false),
|
mViewModeToggleQueued(false),
|
||||||
mCameraDistance(0.f)
|
mCameraDistance(0.f)
|
||||||
{
|
{
|
||||||
|
@ -150,7 +151,7 @@ namespace MWRender
|
||||||
// Now process the view changes we queued earlier
|
// Now process the view changes we queued earlier
|
||||||
if (mVanityToggleQueued)
|
if (mVanityToggleQueued)
|
||||||
{
|
{
|
||||||
toggleVanityMode(!mVanity.enabled);
|
toggleVanityMode(mVanityToggleQueuedValue);
|
||||||
mVanityToggleQueued = false;
|
mVanityToggleQueued = false;
|
||||||
}
|
}
|
||||||
if (mViewModeToggleQueued)
|
if (mViewModeToggleQueued)
|
||||||
|
@ -205,6 +206,7 @@ namespace MWRender
|
||||||
if (isFirstPerson() && !mAnimation->upperBodyReady())
|
if (isFirstPerson() && !mAnimation->upperBodyReady())
|
||||||
{
|
{
|
||||||
mVanityToggleQueued = true;
|
mVanityToggleQueued = true;
|
||||||
|
mVanityToggleQueuedValue = enable;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,7 @@ namespace MWRender
|
||||||
bool mDistanceAdjusted;
|
bool mDistanceAdjusted;
|
||||||
|
|
||||||
bool mVanityToggleQueued;
|
bool mVanityToggleQueued;
|
||||||
|
bool mVanityToggleQueuedValue;
|
||||||
bool mViewModeToggleQueued;
|
bool mViewModeToggleQueued;
|
||||||
|
|
||||||
float mCameraDistance;
|
float mCameraDistance;
|
||||||
|
|
Loading…
Reference in a new issue