13 lines
243 B
C#
13 lines
243 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace GLTF.Utilities
|
|
{
|
|
internal static class JsonReaderExtensions
|
|
{
|
|
public static uint ReadDoubleAsUInt32(this JsonReader reader)
|
|
{
|
|
return (uint)System.Math.Round(reader.ReadAsDouble().Value);
|
|
}
|
|
}
|
|
}
|