mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 09:09:56 +02:00
Merge pull request #13820 from AndrewMeadows/dont-try-physics-for-invalid-models
don't attempt physics with invalid modelURL
This commit is contained in:
commit
41e9c3a2ad
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ void ModelEntityItem::setAnimationFPS(float value) {
|
||||||
|
|
||||||
// virtual
|
// virtual
|
||||||
bool ModelEntityItem::shouldBePhysical() const {
|
bool ModelEntityItem::shouldBePhysical() const {
|
||||||
return !isDead() && getShapeType() != SHAPE_TYPE_NONE;
|
return !isDead() && getShapeType() != SHAPE_TYPE_NONE && QUrl(_modelURL).isValid();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ModelEntityItem::resizeJointArrays(int newSize) {
|
void ModelEntityItem::resizeJointArrays(int newSize) {
|
||||||
|
|
Loading…
Reference in a new issue