mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 12:10:44 +02:00
Android - Prevent crash when setting the url property to _webSurface.
This commit is contained in:
parent
7789697243
commit
ee6c65c1ac
1 changed files with 3 additions and 1 deletions
|
@ -174,8 +174,10 @@ void WebEntityRenderer::doRenderUpdateSynchronousTyped(const ScenePointer& scene
|
|||
}
|
||||
|
||||
if (urlChanged) {
|
||||
if (_webSurface->getRootItem()) {
|
||||
_webSurface->getRootItem()->setProperty("url", _lastSourceUrl);
|
||||
}
|
||||
}
|
||||
|
||||
if (_contextPosition != entity->getWorldPosition()) {
|
||||
// update globalPosition
|
||||
|
|
Loading…
Reference in a new issue