Fix model entities correctly updating payloads when url changes

This commit is contained in:
Ryan Huffman 2015-06-05 08:45:31 -07:00
parent cafc5b7a7c
commit 9814d11bea

View file

@ -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();