Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Formspecs: Fix broken texture escaping with model[]
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/gui/guiFormSpecMenu.cpp
|
@@ -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]))); |
|
|