Skip to content

Commit ff921f6

Browse files
kilbithsfan5
authored andcommittedJan 1, 2021
Formspecs: Fix broken texture escaping with model[]
1 parent 9250b52 commit ff921f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/gui/guiFormSpecMenu.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2787,7 +2787,7 @@ void GUIFormSpecMenu::parseModel(parserData *data, const std::string &element)
27872787
auto meshnode = e->setMesh(mesh);
27882788

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

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

0 commit comments

Comments
 (0)