mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +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());
|
||||
}
|
||||
}
|
||||
|
||||
QString ModelOverlay::getName() const {
|
||||
if (_name != "") {
|
||||
return QString("Overlay:") + getType() + ":" + _name;
|
||||
}
|
||||
return QString("Overlay:") + getType() + ":" + _url.toString();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue