mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-13 00:16:30 +02:00
Merge pull request #15779 from sethalves/bugz-709
bugz-709: don't try to create collision shape before compound shape resource is finished loading
This commit is contained in:
commit
780cf6645e
1 changed files with 4 additions and 0 deletions
|
@ -368,6 +368,10 @@ void RenderableModelEntityItem::computeShapeInfo(ShapeInfo& shapeInfo) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == SHAPE_TYPE_COMPOUND) {
|
if (type == SHAPE_TYPE_COMPOUND) {
|
||||||
|
if (!_compoundShapeResource || !_compoundShapeResource->isLoaded()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
updateModelBounds();
|
updateModelBounds();
|
||||||
|
|
||||||
// should never fall in here when collision model not fully loaded
|
// should never fall in here when collision model not fully loaded
|
||||||
|
|
Loading…
Reference in a new issue