浏览代码

(re) add collision yo noshape.dts
set all rigidshapedatas to default to noshape instead of blank to fix the lack of a basic collision mesh blocking datablock creation

AzaezelX 4 年之前
父节点
当前提交
e4d16a8c61
共有 2 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Engine/source/T3D/rigidShape.cpp
  2. 二进制
      Templates/BaseGame/game/core/rendering/shapes/noshape.dts

+ 1 - 0
Engine/source/T3D/rigidShape.cpp

@@ -263,6 +263,7 @@ RigidShapeData::RigidShapeData()
 
 
    dustTrailEmitter = NULL;
    dustTrailEmitter = NULL;
    dustTrailID = 0;
    dustTrailID = 0;
+   _setShape(ShapeAsset::smNoShapeAssetFallback);
 }
 }
 
 
 RigidShapeData::~RigidShapeData()
 RigidShapeData::~RigidShapeData()

二进制
Templates/BaseGame/game/core/rendering/shapes/noshape.dts