projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b45f6a
)
Add `animated_image` to clickthrough elements (#9724)
author
v-rob
<robinsonvincent89@gmail.com>
Sat, 25 Apr 2020 14:55:21 +0000
(07:55 -0700)
committer
GitHub
<noreply@github.com>
Sat, 25 Apr 2020 14:55:21 +0000
(16:55 +0200)
src/gui/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/gui/guiFormSpecMenu.cpp
b/src/gui/guiFormSpecMenu.cpp
index 0ed525f978e6295675435a668c7d3331974ab8df..567f0ca7e96437d71b850240456f13596223c06d 100644
(file)
--- 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);
}