mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 02:25:48 +02:00
Fix model entities correctly updating payloads when url changes
This commit is contained in:
parent
cafc5b7a7c
commit
9814d11bea
1 changed files with 5 additions and 0 deletions
|
@ -212,6 +212,11 @@ void RenderableModelEntityItem::render(RenderArgs* args) {
|
||||||
|
|
||||||
if (hasModel()) {
|
if (hasModel()) {
|
||||||
if (_model) {
|
if (_model) {
|
||||||
|
if (QUrl(getModelURL()) != _model->getURL()) {
|
||||||
|
qDebug() << "Updating model URL: " << getModelURL();
|
||||||
|
_model->setURL(getModelURL());
|
||||||
|
}
|
||||||
|
|
||||||
// check to see if when we added our models to the scene they were ready, if they were not ready, then
|
// check to see if when we added our models to the scene they were ready, if they were not ready, then
|
||||||
// fix them up in the scene
|
// fix them up in the scene
|
||||||
render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();
|
render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();
|
||||||
|
|
Loading…
Reference in a new issue