Merge pull request #5058 from huffman/entity-update-url

TEAM TEACHING - Fix model entities correctly updating payloads when url changes
This commit is contained in:
Brad Hefta-Gaub 2015-06-05 09:27:36 -07:00
commit 4bbde3d724

View file

@ -211,6 +211,11 @@ void RenderableModelEntityItem::render(RenderArgs* args) {
if (hasModel()) {
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
// fix them up in the scene
render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();