diff options
Diffstat (limited to 'PhysX_3.4/Source/SceneQuery/src')
| -rw-r--r-- | PhysX_3.4/Source/SceneQuery/src/SqAABBPruner.cpp | 2 | ||||
| -rw-r--r-- | PhysX_3.4/Source/SceneQuery/src/SqExtendedBucketPruner.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/PhysX_3.4/Source/SceneQuery/src/SqAABBPruner.cpp b/PhysX_3.4/Source/SceneQuery/src/SqAABBPruner.cpp index 508d1b14..43532883 100644 --- a/PhysX_3.4/Source/SceneQuery/src/SqAABBPruner.cpp +++ b/PhysX_3.4/Source/SceneQuery/src/SqAABBPruner.cpp @@ -518,7 +518,7 @@ void AABBPruner::visualize(Cm::RenderOutput& out, PxU32 color) const // getAABBTree() asserts when pruner is dirty. NpScene::visualization() does not enforce flushUpdate. see DE7834 const AABBTree* tree = mAABBTree; - if(tree) + if(tree && tree->getNodes()) { struct Local { diff --git a/PhysX_3.4/Source/SceneQuery/src/SqExtendedBucketPruner.cpp b/PhysX_3.4/Source/SceneQuery/src/SqExtendedBucketPruner.cpp index 178cff85..a218f655 100644 --- a/PhysX_3.4/Source/SceneQuery/src/SqExtendedBucketPruner.cpp +++ b/PhysX_3.4/Source/SceneQuery/src/SqExtendedBucketPruner.cpp @@ -764,9 +764,9 @@ PxAgain ExtendedBucketPruner::sweep(const Gu::ShapeData& queryVolume, const PxVe #include "CmRenderOutput.h" // visualization -void visualizeTree(Cm::RenderOutput& out, PxU32 color, AABBTree* tree) +static void visualizeTree(Cm::RenderOutput& out, PxU32 color, AABBTree* tree) { - if (tree) + if(tree && tree->getNodes()) { struct Local { |