diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-07-22 04:26:34 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-07-22 04:26:34 +0400 |
commit | b453cd0715014b3645d1913ac8a1130d86e97e21 (patch) | |
tree | 9611c34bce76c0ad0d3fb80b20684e5c23d1844f /source/gameengine/Ketsji/KX_Camera.h | |
parent | 6ce57a706f08d431ab9f8586e106ae545ba861ac (diff) |
Fix bug #1460: Camera IPOs Broken (Gameengine)
The camera IPO was not invalidating the cached projection matrix.
Diffstat (limited to 'source/gameengine/Ketsji/KX_Camera.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_Camera.h | 6 |
1 files changed, 6 insertions, 0 deletions
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. */ |