mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
Pass const float* to vanityRotateCamera
This commit is contained in:
parent
19940987a3
commit
5a27ccacb7
@ -377,7 +377,7 @@ namespace MWBase
|
|||||||
virtual bool isFirstPerson() const = 0;
|
virtual bool isFirstPerson() const = 0;
|
||||||
virtual bool isPreviewModeEnabled() const = 0;
|
virtual bool isPreviewModeEnabled() const = 0;
|
||||||
virtual bool toggleVanityMode(bool enable) = 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 applyDeferredPreviewRotationToPlayer(float dt) = 0;
|
||||||
virtual void disableDeferredPreviewRotation() = 0;
|
virtual void disableDeferredPreviewRotation() = 0;
|
||||||
|
|
||||||
|
@ -2299,7 +2299,7 @@ namespace MWWorld
|
|||||||
return mRendering->getCamera();
|
return mRendering->getCamera();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool World::vanityRotateCamera(float* rot)
|
bool World::vanityRotateCamera(const float* rot)
|
||||||
{
|
{
|
||||||
auto* camera = mRendering->getCamera();
|
auto* camera = mRendering->getCamera();
|
||||||
if (!camera->isVanityOrPreviewModeEnabled())
|
if (!camera->isVanityOrPreviewModeEnabled())
|
||||||
|
@ -468,7 +468,7 @@ namespace MWWorld
|
|||||||
bool toggleVanityMode(bool enable) override;
|
bool toggleVanityMode(bool enable) override;
|
||||||
|
|
||||||
MWRender::Camera* getCamera() override;
|
MWRender::Camera* getCamera() override;
|
||||||
bool vanityRotateCamera(float* rot) override;
|
bool vanityRotateCamera(const float* rot) override;
|
||||||
|
|
||||||
void applyDeferredPreviewRotationToPlayer(float dt) override;
|
void applyDeferredPreviewRotationToPlayer(float dt) override;
|
||||||
void disableDeferredPreviewRotation() override;
|
void disableDeferredPreviewRotation() override;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user