1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Pass const float* to vanityRotateCamera

This commit is contained in:
elsid 2023-07-22 00:51:57 +02:00
parent 19940987a3
commit 5a27ccacb7
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625
3 changed files with 3 additions and 3 deletions

View File

@ -377,7 +377,7 @@ namespace MWBase
virtual bool isFirstPerson() const = 0;
virtual bool isPreviewModeEnabled() const = 0;
virtual bool toggleVanityMode(bool enable) = 0;
virtual bool vanityRotateCamera(float* rot) = 0;
virtual bool vanityRotateCamera(const float* rot) = 0;
virtual void applyDeferredPreviewRotationToPlayer(float dt) = 0;
virtual void disableDeferredPreviewRotation() = 0;

View File

@ -2299,7 +2299,7 @@ namespace MWWorld
return mRendering->getCamera();
}
bool World::vanityRotateCamera(float* rot)
bool World::vanityRotateCamera(const float* rot)
{
auto* camera = mRendering->getCamera();
if (!camera->isVanityOrPreviewModeEnabled())

View File

@ -468,7 +468,7 @@ namespace MWWorld
bool toggleVanityMode(bool enable) override;
MWRender::Camera* getCamera() override;
bool vanityRotateCamera(float* rot) override;
bool vanityRotateCamera(const float* rot) override;
void applyDeferredPreviewRotationToPlayer(float dt) override;
void disableDeferredPreviewRotation() override;