From ef6937e69e8ee3f409cf9d460d5ad300a65d5924 Mon Sep 17 00:00:00 2001 From: sschirm Date: Fri, 23 Dec 2016 14:20:36 +0100 Subject: PhysX 3.4 / APEX 1.4 release candidate @21506124 --- PhysX_3.4/Source/LowLevelAABB/src/BpSimpleAABBManager.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'PhysX_3.4/Source/LowLevelAABB/src/BpSimpleAABBManager.cpp') diff --git a/PhysX_3.4/Source/LowLevelAABB/src/BpSimpleAABBManager.cpp b/PhysX_3.4/Source/LowLevelAABB/src/BpSimpleAABBManager.cpp index 37b5027b..5b33c71b 100644 --- a/PhysX_3.4/Source/LowLevelAABB/src/BpSimpleAABBManager.cpp +++ b/PhysX_3.4/Source/LowLevelAABB/src/BpSimpleAABBManager.cpp @@ -1308,7 +1308,7 @@ void Aggregate::sortBounds() { Ps::Array copy = mAggregated; InflatedAABB* boundsCopy = reinterpret_cast(PX_ALLOC(sizeof(InflatedAABB)*(nbObjects+1), "mInflatedBounds")); - memcpy(boundsCopy, mInflatedBounds, (nbObjects+1)*sizeof(InflatedAABB)); + PxMemCopy(boundsCopy, mInflatedBounds, (nbObjects+1)*sizeof(InflatedAABB)); const PxU32* Sorted = mRS.GetRanks(); for(PxU32 i=0;imarkAsDirty(mDirtyAggregates); - aggregate->allocateBounds(); - aggregate->computeBounds(mBoundsArray, mContactDistance.begin()); - mBoundsArray.begin()[aggregate->mIndex] = aggregate->mBounds; - mUpdatedHandles.pushBack(i); // PT: TODO: BoundsIndex-to-ShapeHandle confusion here + if(aggregate->getNbAggregated()) + { + aggregate->markAsDirty(mDirtyAggregates); + aggregate->allocateBounds(); + aggregate->computeBounds(mBoundsArray, mContactDistance.begin()); + mBoundsArray.begin()[aggregate->mIndex] = aggregate->mBounds; + mUpdatedHandles.pushBack(i); // PT: TODO: BoundsIndex-to-ShapeHandle confusion here + } } } } -- cgit v1.2.3