From 96d5107d408e0328413c70baa4a2005ef98eb6cb Mon Sep 17 00:00:00 2001 From: makamys Date: Mon, 6 Jun 2022 16:58:18 +0200 Subject: Fix meshes not becoming invisible once deleted --- src/main/java/makamys/lodmod/renderer/LODRenderer.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main/java/makamys/lodmod/renderer/LODRenderer.java b/src/main/java/makamys/lodmod/renderer/LODRenderer.java index a053588..908ab65 100644 --- a/src/main/java/makamys/lodmod/renderer/LODRenderer.java +++ b/src/main/java/makamys/lodmod/renderer/LODRenderer.java @@ -617,6 +617,7 @@ public class LODRenderer { public void removeMesh(Mesh mesh) { deleteMeshFromGPU(mesh); + setMeshVisible(mesh, false); } private void sendMeshToGPU(Mesh mesh) { -- cgit