Return parsed tex directly as variant

This commit is contained in:
Zach Pomerantz 2016-03-29 14:12:19 -07:00
parent 848e7703ee
commit 6c7b6cd62e

View file

@ -124,7 +124,9 @@ QVariantMap RenderableModelEntityItem::parseTexturesToMap(QString textures) {
qCWarning(entitiesrenderer) << "Could not evaluate textures property value:" << _textures;
return _originalTextures;
}
return texturesJson.object().toVariantMap();
auto parsed = texturesJson.toVariant();
return parsed.toMap();
}
void RenderableModelEntityItem::remapTextures() {