mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 22:42:17 +02:00
Merge pull request #13717 from highfidelity/revert-13577-invisibleWebEntities
Revert "Allow empty web entities to be rendered"
This commit is contained in:
commit
1b47d3f274
1 changed files with 4 additions and 6 deletions
|
@ -178,6 +178,10 @@ void WebEntityRenderer::doRenderUpdateSynchronousTyped(const ScenePointer& scene
|
|||
|
||||
|
||||
withWriteLock([&] {
|
||||
if (_contentType == ContentType::NoContent) {
|
||||
return;
|
||||
}
|
||||
|
||||
// This work must be done on the main thread
|
||||
// If we couldn't create a new web surface, exit
|
||||
if (!hasWebSurface() && !buildWebSurface(entity)) {
|
||||
|
@ -311,13 +315,7 @@ bool WebEntityRenderer::buildWebSurface(const TypedEntityPointer& entity) {
|
|||
});
|
||||
} else if (_contentType == ContentType::QmlContent) {
|
||||
_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();
|
||||
_webSurface->resume();
|
||||
|
||||
|
|
Loading…
Reference in a new issue