mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 14:47:19 +02:00
Don't refresh NetworkGeometry with cache
This commit is contained in:
parent
5d306a74d5
commit
864def31ea
1 changed files with 6 additions and 1 deletions
|
@ -309,6 +309,10 @@ NetworkGeometry::NetworkGeometry(const GeometryResource::Pointer& networkGeometr
|
|||
}
|
||||
|
||||
void NetworkGeometry::resourceFinished(bool success) {
|
||||
// FIXME: Model is not set up to handle a refresh
|
||||
if (_instance) {
|
||||
return;
|
||||
}
|
||||
if (success) {
|
||||
_instance = std::make_shared<Geometry>(*_resource);
|
||||
}
|
||||
|
@ -316,7 +320,8 @@ void NetworkGeometry::resourceFinished(bool success) {
|
|||
}
|
||||
|
||||
void NetworkGeometry::resourceRefreshed() {
|
||||
_instance.reset();
|
||||
// FIXME: Model is not set up to handle a refresh
|
||||
// _instance.reset();
|
||||
}
|
||||
|
||||
const QString NetworkMaterial::NO_TEXTURE = QString();
|
||||
|
|
Loading…
Reference in a new issue