aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/PhysX/src/NpSceneQueries.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'PhysX_3.4/Source/PhysX/src/NpSceneQueries.cpp')
-rw-r--r--PhysX_3.4/Source/PhysX/src/NpSceneQueries.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/PhysX_3.4/Source/PhysX/src/NpSceneQueries.cpp b/PhysX_3.4/Source/PhysX/src/NpSceneQueries.cpp
index afadf740..1ccaa43a 100644
--- a/PhysX_3.4/Source/PhysX/src/NpSceneQueries.cpp
+++ b/PhysX_3.4/Source/PhysX/src/NpSceneQueries.cpp
@@ -610,7 +610,7 @@ struct CapturePvdOnReturn : public PxHitCallback<HitType>
~CapturePvdOnReturn()
{
const physx::Vd::ScbScenePvdClient& pvdClient = mSQ->getScene().getScenePvdClient();
- if(!(pvdClient.isConnected() && (pvdClient.getScenePvdFlags() & PxPvdSceneFlag::eTRANSMIT_SCENEQUERIES)))
+ if(!(pvdClient.checkPvdDebugFlag() && (pvdClient.getScenePvdFlagsFast() & PxPvdSceneFlag::eTRANSMIT_SCENEQUERIES)))
return;
physx::Vd::PvdSceneQueryCollector& collector = mBFD ? mSQ->getBatchedSqCollector() : mSQ->getSingleSqCollector();