2
0
Эх сурвалжийг харах

add trimming attribute to custom vertex with feature id

Bert Temme 2 жил өмнө
parent
commit
947bd83952

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

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