From 6a31f19f9cb380d13daa2467a3cd2eb79b4755a0 Mon Sep 17 00:00:00 2001 From: Bartek Bok Date: Wed, 27 Apr 2011 16:55:42 +0200 Subject: [PATCH] Fix for hsBounds asserts --- Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.cpp b/Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.cpp index 857f3aaa..c840e6c4 100644 --- a/Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.cpp +++ b/Sources/Plasma/PubUtilLib/plPipeline/plDXPipeline.cpp @@ -9019,7 +9019,10 @@ hsBool plDXPipeline::TestVisibleWorld( const hsBounds3Ext& wBnd ) { if( fView.fCullTreeDirty ) IRefreshCullTree(); - return fView.fCullTree.BoundsVisible(wBnd); + if (wBnd.GetType() == kBoundsNormal) + return fView.fCullTree.BoundsVisible(wBnd); + else + return false; } hsBool plDXPipeline::TestVisibleWorld( const plSceneObject* sObj )