From 10934fd87b890221a413e481ff051212558bafd2 Mon Sep 17 00:00:00 2001 From: Lynix Date: Thu, 9 Jan 2020 19:46:22 +0100 Subject: [PATCH] SDK/CameraComponent: Fix SetProjectionScale implementation --- SDK/include/NDK/Components/CameraComponent.inl | 13 ++++++++++++- SDK/src/NDK/Components/CameraComponent.cpp | 12 ------------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/SDK/include/NDK/Components/CameraComponent.inl b/SDK/include/NDK/Components/CameraComponent.inl index c8b9226f2..e059a68b1 100644 --- a/SDK/include/NDK/Components/CameraComponent.inl +++ b/SDK/include/NDK/Components/CameraComponent.inl @@ -161,12 +161,23 @@ namespace Ndk InvalidateProjectionMatrix(); } + /*! + * \brief Sets the camera projection scale + * + * \param scale New projection scale + */ + inline void CameraComponent::SetProjectionScale(const Nz::Vector3f& scale) + { + m_projectionScale = scale; + + InvalidateProjectionMatrix(); + } + /*! * \brief Sets the projection type of the camera * * \param projectionType Projection type of the camera */ - inline void CameraComponent::SetProjectionType(Nz::ProjectionType projectionType) { m_projectionType = projectionType; diff --git a/SDK/src/NDK/Components/CameraComponent.cpp b/SDK/src/NDK/Components/CameraComponent.cpp index 31dde3ae2..4a599ab9e 100644 --- a/SDK/src/NDK/Components/CameraComponent.cpp +++ b/SDK/src/NDK/Components/CameraComponent.cpp @@ -165,18 +165,6 @@ namespace Ndk m_entity->Invalidate(); // Invalidate the entity to make it passes through RenderSystem validation } - /*! - * \brief Sets the camera projection scale - * - * \param scale New projection scale - */ - inline void CameraComponent::SetProjectionScale(const Nz::Vector3f& scale) - { - m_projectionScale = scale; - - InvalidateProjectionMatrix(); - } - /*! * \brief Operation to perform when component is attached to an entity */