Browse Source

Merge pull request #211 from bertt/add_attribute_to_custom_vertex_with_feature_id

add trimming attribute to custom vertex with feature id
Vicente Penades 2 years ago
parent
commit
7b6fda02a9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/SharpGLTF.Cesium.Tests/VertexWithFeatureId.cs

+ 5 - 0
tests/SharpGLTF.Cesium.Tests/VertexWithFeatureId.cs

@@ -1,5 +1,6 @@
 using System;
 using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
 using System.Numerics;
 using System.Numerics;
 
 
 using SharpGLTF.Geometry.VertexTypes;
 using SharpGLTF.Geometry.VertexTypes;
@@ -7,6 +8,10 @@ using SharpGLTF.Schema2;
 
 
 namespace SharpGLTF
 namespace SharpGLTF
 {
 {
+
+    #if NET6_0_OR_GREATER
+        [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields)]
+    #endif
     [System.Diagnostics.DebuggerDisplay("𝐂:{Color} 𝐔𝐕:{TexCoord}")]
     [System.Diagnostics.DebuggerDisplay("𝐂:{Color} 𝐔𝐕:{TexCoord}")]
     public struct VertexWithFeatureId : IVertexCustom
     public struct VertexWithFeatureId : IVertexCustom
     {
     {