|
@@ -389,7 +389,7 @@ bool TSStatic::_createShape()
|
|
SAFE_DELETE(mPhysicsRep);
|
|
SAFE_DELETE(mPhysicsRep);
|
|
SAFE_DELETE(mShapeInstance);
|
|
SAFE_DELETE(mShapeInstance);
|
|
mAmbientThread = NULL;
|
|
mAmbientThread = NULL;
|
|
- mShape = NULL;
|
|
|
|
|
|
+ //mShape = NULL;
|
|
|
|
|
|
U32 assetStatus = ShapeAsset::getAssetErrCode(mShapeAsset);
|
|
U32 assetStatus = ShapeAsset::getAssetErrCode(mShapeAsset);
|
|
if (assetStatus == AssetBase::Ok || assetStatus == AssetBase::UsingFallback)
|
|
if (assetStatus == AssetBase::Ok || assetStatus == AssetBase::UsingFallback)
|
|
@@ -606,15 +606,6 @@ void TSStatic::onRemove()
|
|
Parent::onRemove();
|
|
Parent::onRemove();
|
|
}
|
|
}
|
|
|
|
|
|
-void TSStatic::_onResourceChanged(const Torque::Path& path)
|
|
|
|
-{
|
|
|
|
- if (path != Path(mShapeName))
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
- _createShape();
|
|
|
|
- _updateShouldTick();
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
void TSStatic::onShapeChanged()
|
|
void TSStatic::onShapeChanged()
|
|
{
|
|
{
|
|
_createShape();
|
|
_createShape();
|