Browse Source

Texture Transform Offset default value should be zero. Fixes #21

Vicente Penades 6 years ago
parent
commit
f5eaffe133

+ 1 - 1
build/SharpGLTF.CodeGen/Program.cs

@@ -156,7 +156,7 @@ namespace SharpGLTF
 
             tex.GetField("offset")
                 .SetDataType(typeof(System.Numerics.Vector2), true)
-                .SetDefaultValue("Vector2.One")
+                .SetDefaultValue("Vector2.Zero")
                 .SetItemsRange(0);
 
             tex.GetField("scale")

+ 1 - 1
src/SharpGLTF.Core/Schema2/Generated/ext.TextureTransform.g.cs

@@ -31,7 +31,7 @@ namespace SharpGLTF.Schema2
 	partial class TextureTransform : ExtraProperties
 	{
 	
-		private static readonly Vector2 _offsetDefault = Vector2.One;
+		private static readonly Vector2 _offsetDefault = Vector2.Zero;
 		private Vector2? _offset = _offsetDefault;
 		
 		private const Double _rotationDefault = 0;