Use correct textureBaseUrl

This commit is contained in:
Zach Pomerantz 2016-03-25 13:17:29 -07:00
parent fac54b6ee3
commit b90f2b2e0a

View file

@ -157,7 +157,7 @@ class GeometryDefinitionResource : public GeometryResource {
Q_OBJECT
public:
GeometryDefinitionResource(const QUrl& url, const QVariantHash& mapping, const QUrl& textureBaseUrl) :
GeometryResource(url), _mapping(mapping), _textureBaseUrl(textureBaseUrl) {}
GeometryResource(url), _mapping(mapping), _textureBaseUrl(textureBaseUrl.isValid() ? textureBaseUrl : url) {}
virtual void downloadFinished(const QByteArray& data) override;
@ -497,4 +497,3 @@ void NetworkMaterial::setTextures(const QVariantMap& textureMap) {
}
#include "ModelCache.moc"