diff --git a/Engine/source/T3D/tsStatic.cpp b/Engine/source/T3D/tsStatic.cpp index dd2bd8dcf..ea5d30beb 100644 --- a/Engine/source/T3D/tsStatic.cpp +++ b/Engine/source/T3D/tsStatic.cpp @@ -484,7 +484,7 @@ void TSStatic::prepCollision() mLOSDetails.clear(); mConvexList->nukeList(); - Resource shape = mShapeAssetRef.assetPtr->getShapeResource(); + TSShape* shape = mShapeInstance->getShape(); if (mCollisionType == CollisionMesh || mCollisionType == VisibleMesh) { @@ -515,7 +515,7 @@ void TSStatic::_updatePhysics() if (!PHYSICSMGR || mCollisionType == None) return; - Resource shape = mShapeAssetRef.assetPtr->getShapeResource(); + TSShape* shape = mShapeInstance->getShape(); PhysicsCollision* colShape = NULL; if (mCollisionType == Bounds)