mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Formspecs: Fix broken texture escaping with model[]
This commit is contained in:
parent
9250b5205a
commit
ff921f6989
1 changed files with 1 additions and 1 deletions
|
@ -2787,7 +2787,7 @@ void GUIFormSpecMenu::parseModel(parserData *data, const std::string &element)
|
||||||
auto meshnode = e->setMesh(mesh);
|
auto meshnode = e->setMesh(mesh);
|
||||||
|
|
||||||
for (u32 i = 0; i < textures.size() && i < meshnode->getMaterialCount(); ++i)
|
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)
|
if (vec_rot.size() >= 2)
|
||||||
e->setRotation(v2f(stof(vec_rot[0]), stof(vec_rot[1])));
|
e->setRotation(v2f(stof(vec_rot[0]), stof(vec_rot[1])));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue