mirror of
https://github.com/overte-org/overte.git
synced 2025-07-29 21:59:06 +02:00
Merge pull request #15596 from AndrewMeadows/fix-crash-bugz178
BUGZ-178: avoid crash for RenderableModelEntityItem with invalid model (redux)
This commit is contained in:
commit
b1edfdcaef
1 changed files with 1 additions and 1 deletions
|
@ -363,7 +363,7 @@ void RenderableModelEntityItem::computeShapeInfo(ShapeInfo& shapeInfo) {
|
||||||
ShapeType type = getShapeType();
|
ShapeType type = getShapeType();
|
||||||
|
|
||||||
auto model = getModel();
|
auto model = getModel();
|
||||||
if (!model) {
|
if (!model || !model->isLoaded()) {
|
||||||
type = SHAPE_TYPE_NONE;
|
type = SHAPE_TYPE_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue