Pass const float* to vanityRotateCamera

revert-6246b479
elsid 1 year ago
parent 19940987a3
commit 5a27ccacb7
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

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

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

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

Loading…
Cancel
Save