From b453cd0715014b3645d1913ac8a1130d86e97e21 Mon Sep 17 00:00:00 2001 From: Kester Maddock Date: Thu, 22 Jul 2004 00:26:34 +0000 Subject: Fix bug #1460: Camera IPOs Broken (Gameengine) The camera IPO was not invalidating the cached projection matrix. --- source/gameengine/Ketsji/KX_Camera.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/gameengine/Ketsji/KX_Camera.h') diff --git a/source/gameengine/Ketsji/KX_Camera.h b/source/gameengine/Ketsji/KX_Camera.h index 103c47fc3d6..52ae64efbfb 100644 --- a/source/gameengine/Ketsji/KX_Camera.h +++ b/source/gameengine/Ketsji/KX_Camera.h @@ -158,6 +158,12 @@ public: /** returns true if this camera has been set a projection matrix. */ bool hasValidProjectionMatrix() const; + /** Sets the validity of the projection matrix. Call this if you change camera + data (eg lens, near plane, far plane) and require the projection matrix to be + recalculated. + */ + void InvalidateProjectionMatrix(bool valid = false); + /** Gets the modelview matrix that is used by the rasterizer. * @warning If the Camera is a dynamic object then this method may return garbage. Use GetCameraToWorld() instead. */ -- cgit v1.2.3