Commit 016c81a9 authored by cutealien's avatar cutealien

Fix first calculation of the camerascenenode boundingsphere.

FarNearDistance had been used before it was set.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5171 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 645c595f
-------------------------- --------------------------
Changes in 1.9 (not yet released) Changes in 1.9 (not yet released)
- Fix first calculation of the camerascenenode boundingsphere.
- Fix bug with ignored opening brace in .X files with DeclData section. Thx @Alin for bugreport and patch. - Fix bug with ignored opening brace in .X files with DeclData section. Thx @Alin for bugreport and patch.
- Fix problem with OpenGL textures cache. - Fix problem with OpenGL textures cache.
- Add clear buffer flags and marked some methods used for clear buffers as deprecated. - Add clear buffer flags and marked some methods used for clear buffers as deprecated.
......
...@@ -35,9 +35,9 @@ CCameraSceneNode::CCameraSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 i ...@@ -35,9 +35,9 @@ CCameraSceneNode::CCameraSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 i
else else
Aspect = 4.0f / 3.0f; // Aspect ratio. Aspect = 4.0f / 3.0f; // Aspect ratio.
ViewArea.setFarNearDistance(ZFar - ZNear);
recalculateProjectionMatrix(); recalculateProjectionMatrix();
recalculateViewArea(); recalculateViewArea();
ViewArea.setFarNearDistance(ZFar - ZNear);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment