From 294d3b66655e4fe77fb689ea4f762d58993732c5 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Mon, 28 Oct 2019 23:16:26 +0100 Subject: [PATCH] Small fix --- src/collision/CollisionDetection.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/collision/CollisionDetection.cpp b/src/collision/CollisionDetection.cpp index a5b9726b..4377b2b7 100644 --- a/src/collision/CollisionDetection.cpp +++ b/src/collision/CollisionDetection.cpp @@ -335,7 +335,10 @@ void CollisionDetection::broadPhaseNotifyOverlappingPair(ProxyShape* shape1, Pro mMemoryManager.getSingleFrameAllocator(), mWorld->mConfig); assert(newPair != nullptr); +#ifdef IS_PROFILING_ACTIVE newPair->setProfiler(mProfiler); +#endif + mOverlappingPairs.add(Pair, OverlappingPair*>(pairID, newPair)); // Wake up the two bodies