mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-26 02:35:16 +02:00
Revert "Allow empty web entities to be rendered"
This commit is contained in:
parent
8201997a16
commit
a6aaa71d02
1 changed files with 4 additions and 6 deletions
|
@ -178,6 +178,10 @@ void WebEntityRenderer::doRenderUpdateSynchronousTyped(const ScenePointer& scene
|
||||||
|
|
||||||
|
|
||||||
withWriteLock([&] {
|
withWriteLock([&] {
|
||||||
|
if (_contentType == ContentType::NoContent) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// This work must be done on the main thread
|
// This work must be done on the main thread
|
||||||
// If we couldn't create a new web surface, exit
|
// If we couldn't create a new web surface, exit
|
||||||
if (!hasWebSurface() && !buildWebSurface(entity)) {
|
if (!hasWebSurface() && !buildWebSurface(entity)) {
|
||||||
|
@ -311,13 +315,7 @@ bool WebEntityRenderer::buildWebSurface(const TypedEntityPointer& entity) {
|
||||||
});
|
});
|
||||||
} else if (_contentType == ContentType::QmlContent) {
|
} else if (_contentType == ContentType::QmlContent) {
|
||||||
_webSurface->load(_lastSourceUrl);
|
_webSurface->load(_lastSourceUrl);
|
||||||
} else if (_contentType == ContentType::NoContent) {
|
|
||||||
// Show empty white panel
|
|
||||||
_webSurface->load("controls/WebEntityView.qml", [this](QQmlContext* context, QObject* item) {
|
|
||||||
item->setProperty(URL_PROPERTY, "");
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_fadeStartTime = usecTimestampNow();
|
_fadeStartTime = usecTimestampNow();
|
||||||
_webSurface->resume();
|
_webSurface->resume();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue