mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 06:09:55 +02:00
don't try to create collision shape before compound shape resource is finished loading
This commit is contained in:
parent
625ec7ca84
commit
e7b852ca38
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