Init tex base url in Geometry ctor

This commit is contained in:
Zach Pomerantz 2016-04-01 11:32:13 -07:00
parent 1e7a69fb90
commit 2daf0c4da4

View file

@ -95,7 +95,8 @@ class GeometryResource : public Resource, public Geometry {
public:
using Pointer = QSharedPointer<GeometryResource>;
GeometryResource(const QUrl& url, const QUrl& textureBaseUrl = QUrl()) : Resource(url) {}
GeometryResource(const QUrl& url, const QUrl& textureBaseUrl = QUrl()) :
Resource(url), _textureBaseUrl(textureBaseUrl) {}
virtual bool areTexturesLoaded() const { return isLoaded() && Geometry::areTexturesLoaded(); }