mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
if model-overlay has no name, use its url
This commit is contained in:
parent
74a82f92df
commit
c04c0c5b13
1 changed files with 7 additions and 0 deletions
|
@ -279,3 +279,10 @@ void ModelOverlay::locationChanged(bool tellPhysics) {
|
||||||
_model->setTranslation(getPosition());
|
_model->setTranslation(getPosition());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString ModelOverlay::getName() const {
|
||||||
|
if (_name != "") {
|
||||||
|
return QString("Overlay:") + getType() + ":" + _name;
|
||||||
|
}
|
||||||
|
return QString("Overlay:") + getType() + ":" + _url.toString();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue