mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
don't attempt physics with invalid modelURL
This commit is contained in:
parent
ac37f476d9
commit
fd9876cb63
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ void ModelEntityItem::setAnimationFPS(float value) {
|
|||
|
||||
// virtual
|
||||
bool ModelEntityItem::shouldBePhysical() const {
|
||||
return !isDead() && getShapeType() != SHAPE_TYPE_NONE;
|
||||
return !isDead() && getShapeType() != SHAPE_TYPE_NONE && QUrl(_modelURL).isValid();
|
||||
}
|
||||
|
||||
void ModelEntityItem::resizeJointArrays(int newSize) {
|
||||
|
|
Loading…
Reference in a new issue