mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 18:13:29 +02:00
Revert model texs when unset
This commit is contained in:
parent
98aaf02030
commit
0903e14b06
1 changed files with 2 additions and 1 deletions
|
@ -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", ",\"") + "}";
|
||||
|
|
Loading…
Reference in a new issue