Skip to content

Commit

Permalink
Formspecs: Fix broken texture escaping with model[]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Patrick Guerrero authored and sfan5 committed Jan 1, 2021
1 parent 9250b52 commit ff921f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/guiFormSpecMenu.cpp
Expand Up @@ -2787,7 +2787,7 @@ void GUIFormSpecMenu::parseModel(parserData *data, const std::string &element)
auto meshnode = e->setMesh(mesh);

for (u32 i = 0; i < textures.size() && i < meshnode->getMaterialCount(); ++i)
e->setTexture(i, m_tsrc->getTexture(textures[i]));
e->setTexture(i, m_tsrc->getTexture(unescape_string(textures[i])));

if (vec_rot.size() >= 2)
e->setRotation(v2f(stof(vec_rot[0]), stof(vec_rot[1])));
Expand Down

0 comments on commit ff921f6

Please sign in to comment.