From d48121469854aa1dd95f6618acc10721d6b0dfe8 Mon Sep 17 00:00:00 2001
From: Image <>
Date: Sat, 27 Jun 2020 23:09:37 -0400
Subject: [PATCH] Disabling of floras/leaves/tops of trees to reduce map
 footprint

---
 .../EQ2ModelViewer/EQ2ModelViewer/Model.cs         | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/EQ2/devtools/EQ2ModelViewer/EQ2ModelViewer/Model.cs b/EQ2/devtools/EQ2ModelViewer/EQ2ModelViewer/Model.cs
index 0691a7549..383ade477 100644
--- a/EQ2/devtools/EQ2ModelViewer/EQ2ModelViewer/Model.cs
+++ b/EQ2/devtools/EQ2ModelViewer/EQ2ModelViewer/Model.cs
@@ -73,12 +73,17 @@ namespace EQ2ModelViewer
                         string path = meshes[i][j];
 
                         path = baseDir + path.Replace("/", "\\");
-                        //                        if (path.Contains("\\flora\\"))
-                            if (path.Contains("\\accessories\\"))
+                        //                       if (path.Contains("\\flora\\"))
+                        if (path.Contains("\\accessories\\"))
                         {
                             Console.WriteLine("Model: skipping loading of model (Accessories suck!)" + path);
                             return false;
                         }
+                        else if (path.Contains("\\flora\\") && (path.Contains("leaves") || path.Contains("top00")))
+                        {
+                            Console.WriteLine("Model: skipping loading of model (Leaves and Tree Tops suck!)" + path);
+                            return false;
+                        }
                         string[] texture = frmMain.GetTextureFile(((VeMeshGeometryNode)item).shaderPaletteNames, baseDir);
                         string pickedTexture = "";
                         if (i < texture.Length && texture[i] != "goblin_ice.dds")
@@ -239,11 +244,6 @@ namespace EQ2ModelViewer
                         mesh.AddData(i, x, y, z, nx, ny, nz, tu, tv);
                     }
 
-                    if (model.indices.Length < 1 || model.normals.Length < 1 || model.vertices.Length < 1)
-                    {
-                        int test = 0;
-                    }
-
                     m_meshes.Add(mesh);
                 }
             }