From 70075745f9d7eecf72bddc1c35f6794c6fbf4ada Mon Sep 17 00:00:00 2001 From: Gaming32 Date: Tue, 2 Mar 2021 10:06:59 -0600 Subject: [PATCH] fix Triangle Mesh bug --- src/visuals/Mesh.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/visuals/Mesh.java b/src/visuals/Mesh.java index 8f4a2eaf..121b6b51 100644 --- a/src/visuals/Mesh.java +++ b/src/visuals/Mesh.java @@ -69,6 +69,9 @@ public static int getTrianglesPerRow(int length, int trianglesPerColumn) { @Override public void drawVisual(int[] array, ArrayVisualizer ArrayVisualizer, Renderer Renderer, Highlights Highlights) { + if (Renderer.auxActive) + return; + int trih = getTriangleHeight(ArrayVisualizer.getCurrentLength(), ArrayVisualizer.windowHeight() / 20); //Height of triangles to use, Width will be scaled accordingly int tripercol = (ArrayVisualizer.windowHeight() / trih) * 2; //Triangles per column