don't try to create collision shape before compound shape resource is finished loading

This commit is contained in:
Seth Alves 2019-06-17 13:18:03 -07:00
parent 625ec7ca84
commit e7b852ca38

View file

@ -368,6 +368,10 @@ void RenderableModelEntityItem::computeShapeInfo(ShapeInfo& shapeInfo) {
}
if (type == SHAPE_TYPE_COMPOUND) {
if (!_compoundShapeResource || !_compoundShapeResource->isLoaded()) {
return;
}
updateModelBounds();
// should never fall in here when collision model not fully loaded