summaryrefslogtreecommitdiff
path: root/src/gui/guiFormSpecMenu.cpp
diff options
context:
space:
mode:
authorv-rob <robinsonvincent89@gmail.com>2020-04-25 07:55:21 -0700
committerGitHub <noreply@github.com>2020-04-25 16:55:21 +0200
commitbc60e44d80a02bd48163440da2fd3165c0910376 (patch)
tree158b23b47a22ae74f630b7c5dc6ecdba9a27ea12 /src/gui/guiFormSpecMenu.cpp
parent8b45f6a5f3eac7030cdc12d729066ccef4794502 (diff)
downloadminetest-bc60e44d80a02bd48163440da2fd3165c0910376.tar.gz
minetest-bc60e44d80a02bd48163440da2fd3165c0910376.tar.bz2
minetest-bc60e44d80a02bd48163440da2fd3165c0910376.zip
Add `animated_image` to clickthrough elements (#9724)
Diffstat (limited to 'src/gui/guiFormSpecMenu.cpp')
-rw-r--r--src/gui/guiFormSpecMenu.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index 0ed525f97..567f0ca7e 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/src/gui/guiFormSpecMenu.cpp
@@ -915,7 +915,9 @@ void GUIFormSpecMenu::parseAnimatedImage(parserData *data, const std::string &el
auto style = getDefaultStyleForElement("animated_image", spec.fname, "image");
e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false));
- e->drop();
+
+ // Animated images should let events through
+ m_clickthrough_elements.push_back(e);
m_fields.push_back(spec);
}