]> git.lizzy.rs Git - minetest.git/commitdiff
Formspecs: Fix broken texture escaping with model[]
authorJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Fri, 1 Jan 2021 16:03:34 +0000 (17:03 +0100)
committersfan5 <sfan5@live.de>
Fri, 1 Jan 2021 16:03:34 +0000 (17:03 +0100)
src/gui/guiFormSpecMenu.cpp

index 61112b5705490192a7e311954ba688fbb6be65e4..973fc60a8918ef95ee869ee4028522bab45c0aa4 100644 (file)
@@ -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])));