From: v-rob Date: Sat, 25 Apr 2020 14:55:21 +0000 (-0700) Subject: Add `animated_image` to clickthrough elements (#9724) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bc60e44d80a02bd48163440da2fd3165c0910376;p=oweals%2Fminetest.git Add `animated_image` to clickthrough elements (#9724) --- 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); }