From bccaf5fc2d11c31615d64b9bca91f908d06b7044 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 25 May 2022 19:00:34 +0200 Subject: [PATCH] Map opaque waving leaves to allfaces drawtype fixes #9842 --- src/nodedef.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 922554a2c..9c85826c4 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -901,8 +901,15 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc solidness = 0; visual_solidness = 1; } else { - drawtype = NDT_NORMAL; - solidness = 2; + if (waving >= 1) { + // waving nodes must make faces so there are no gaps + drawtype = NDT_ALLFACES; + solidness = 0; + visual_solidness = 1; + } else { + drawtype = NDT_NORMAL; + solidness = 2; + } for (TileDef &td : tdef) td.name += std::string("^[noalpha"); }