aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>2021-01-01 17:03:34 +0100
committersfan5 <sfan5@live.de>2021-01-01 17:03:34 +0100
commitff921f6989cc6e8e0be6bf9ac196e90331bb3eb4 (patch)
tree53e69ea7d08cbb86efffe5ec35ae062b98ee174b
parent9250b5205a6c627dfa18b7870b454d74f8d9dae6 (diff)
downloadminetest-ff921f6989cc6e8e0be6bf9ac196e90331bb3eb4.tar.gz
minetest-ff921f6989cc6e8e0be6bf9ac196e90331bb3eb4.tar.bz2
minetest-ff921f6989cc6e8e0be6bf9ac196e90331bb3eb4.zip
Formspecs: Fix broken texture escaping with model[]
-rw-r--r--src/gui/guiFormSpecMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index 61112b570..973fc60a8 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/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])));