mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 14:14:33 +00:00
Merge pull request #1759 from Areloch/TSStaticFallbackShapePtrFix
Adjusts the logic for collision and physics setup functions in TSStatic
This commit is contained in:
commit
0c2aa5328c
1 changed files with 2 additions and 2 deletions
|
|
@ -484,7 +484,7 @@ void TSStatic::prepCollision()
|
|||
mLOSDetails.clear();
|
||||
mConvexList->nukeList();
|
||||
|
||||
Resource<TSShape> 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<TSShape> shape = mShapeAssetRef.assetPtr->getShapeResource();
|
||||
TSShape* shape = mShapeInstance->getShape();
|
||||
|
||||
PhysicsCollision* colShape = NULL;
|
||||
if (mCollisionType == Bounds)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue