mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:25:31 +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 (!_compoundShapeResource || !_compoundShapeResource->isLoaded()) {
|
||||
return;
|
||||
}
|
||||
|
||||
updateModelBounds();
|
||||
|
||||
// should never fall in here when collision model not fully loaded
|
||||
|
|
Loading…
Reference in a new issue