From dfc58a36e7cf9c9fc70bd648292a36a8b419c74e Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Sun, 26 Nov 2017 20:13:50 +0100 Subject: [PATCH] Crop if target image name does not contain 'animated.png' Minetest seems to name textures '_animated.png' if they are. If source textures are animated, but the target isn't named accordingly, crop it. See #9 --- mcresconvert.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mcresconvert.sh b/mcresconvert.sh index 16f958c..3854815 100755 --- a/mcresconvert.sh +++ b/mcresconvert.sh @@ -60,6 +60,10 @@ copy_or_crop_from_anim() { if echo $IN | grep -q "/items/"; then crop="1" fi + # in minetest blocks textures are called *_animated.png" if they are + if ! echo $OUT | grep -q "_animated.png"; then + crop="1" + fi fi fi