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);