Dont make fastface if tile is not seamless
authorRealBadAngel <maciej.kasatkin@o2.pl>
Sat, 20 Feb 2016 05:53:56 +0000 (06:53 +0100)
committerest31 <MTest31@outlook.com>
Sun, 21 Feb 2016 16:30:16 +0000 (17:30 +0100)
Fixes #3378
Closes #3751

src/mapblock_mesh.cpp

index 42e84b75eca20783090d1fc77d0b83ecdedfab28..e1ec50ab08ff9946528b2eb690d999130a97fc94 100644 (file)
@@ -885,8 +885,9 @@ static void updateFastFaceRow(
                                        && next_lights[3] == lights[3]
                                        && next_tile == tile
                                        && tile.rotation == 0
-                                       && next_light_source == light_source)
-                       {
+                                       && next_light_source == light_source
+                                       && (tile.material_flags & MATERIAL_FLAG_TILEABLE_HORIZONTAL)
+                                       && (tile.material_flags & MATERIAL_FLAG_TILEABLE_VERTICAL)) {
                                next_is_different = false;
                        }
                        else{