]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/client/mapblock_mesh.cpp
Attachments: Fix attachments to temporary removed objects (#8989)
[dragonfireclient.git] / src / client / mapblock_mesh.cpp
index ed8a073de5792bbc92464b8f2ff820c3327f6773..2bfaa7a4f96d724fdb3b355b4ea4eb63de4fb910 100644 (file)
@@ -744,7 +744,7 @@ void getNodeTile(MapNode mn, const v3s16 &p, const v3s16 &dir, MeshMakeData *dat
        u8 dir_i = ((dir.X + 2 * dir.Y + 3 * dir.Z) & 7) * 2;
 
        // Get rotation for things like chests
-       u8 facedir = mn.getFaceDir(ndef);
+       u8 facedir = mn.getFaceDir(ndef, true);
 
        static const u16 dir_to_tile[24 * 16] =
        {
@@ -942,10 +942,7 @@ static void updateFastFaceRow(
 
                                makeFastFace(tile, lights[0], lights[1], lights[2], lights[3],
                                                pf, sp, face_dir_corrected, scale, dest);
-
-                               g_profiler->avg("Meshgen: faces drawn by tiling", 0);
-                               for (int i = 1; i < continuous_tiles_count; i++)
-                                       g_profiler->avg("Meshgen: faces drawn by tiling", 1);
+                               g_profiler->avg("Meshgen: Tiles per face [#]", continuous_tiles_count);
                        }
 
                        continuous_tiles_count = 1;