mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 23:46:26 +02:00
Merge pull request #13577 from dback2/invisibleWebEntities
Allow empty web entities to be rendered
This commit is contained in:
commit
32ec984f82
1 changed files with 6 additions and 4 deletions
|
@ -178,10 +178,6 @@ 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)) {
|
||||||
|
@ -315,7 +311,13 @@ 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