Revert model texs when unset

This commit is contained in:
Zach Pomerantz 2016-02-12 15:57:24 -08:00
parent 98aaf02030
commit 0903e14b06

View file

@ -101,8 +101,9 @@ int RenderableModelEntityItem::readEntitySubclassDataFromBuffer(const unsigned c
}
QVariantMap RenderableModelEntityItem::parseTexturesToMap(QString textures) {
// If textures are unset, revert to original textures
if (textures == "") {
return QVariantMap();
return parseTexturesToMap(_originalTextures.join(",\n"));
}
QString jsonTextures = "{\"" + textures.replace(":\"", "\":\"").replace(",\n", ",\"") + "}";