From 8597e491e0bb4d92bc4cdf8a09f99650007f25eb Mon Sep 17 00:00:00 2001 From: 4sval Date: Mon, 29 Aug 2022 01:20:28 +0200 Subject: [PATCH] get back here --- FModel/Views/Snooper/Model.cs | 1 + FModel/Views/Snooper/Section.cs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/FModel/Views/Snooper/Model.cs b/FModel/Views/Snooper/Model.cs index 9dfdc00a..6ab314c1 100644 --- a/FModel/Views/Snooper/Model.cs +++ b/FModel/Views/Snooper/Model.cs @@ -122,6 +122,7 @@ public class Model : IDisposable for (int section = 0; section < Sections.Length; section++) { Sections[section].Bind(section, Indices.Length); + _gl.DrawArrays(PrimitiveType.Triangles, Sections[section].FirstFaceIndex, Sections[section].FacesCount); } ImGui.EndTable(); diff --git a/FModel/Views/Snooper/Section.cs b/FModel/Views/Snooper/Section.cs index b43de0a0..3a3e0d61 100644 --- a/FModel/Views/Snooper/Section.cs +++ b/FModel/Views/Snooper/Section.cs @@ -95,8 +95,6 @@ public class Section : IDisposable ImGui.EndTooltip(); } - _gl.DrawArrays(PrimitiveType.Triangles, FirstFaceIndex, FacesCount); - if (Parameters.IsNull) return; _diffuseMap?.Bind(TextureUnit.Texture0); _normalMap?.Bind(TextureUnit.Texture1);