Browse Source

whitespaces cleanup

Vicente Penades 4 years ago
parent
commit
9f4871a30e

+ 0 - 2
src/SharpGLTF.Core/Animations/CurveSamplers.Fixed.cs

@@ -66,8 +66,6 @@ namespace SharpGLTF.Animations
             return new Dictionary<float, (T TangentIn, T Value, T TangentOut)> { [0] = (default, _Value, default) };
             return new Dictionary<float, (T TangentIn, T Value, T TangentOut)> { [0] = (default, _Value, default) };
         }
         }
 
 
-        
-
         #endregion
         #endregion
     }
     }
 }
 }

+ 7 - 0
src/SharpGLTF.Core/Animations/CurveSamplers.Traits.cs

@@ -27,6 +27,7 @@ namespace SharpGLTF.Animations
                 return CurveSampler.InterpolateCubic(start, outgoingTangent, end, incomingTangent, amount);
                 return CurveSampler.InterpolateCubic(start, outgoingTangent, end, incomingTangent, amount);
             }
             }
         }
         }
+
         sealed class _Quaternion : ISamplerTraits<Quaternion>
         sealed class _Quaternion : ISamplerTraits<Quaternion>
         {
         {
             public Quaternion Clone(Quaternion value) { return value; }
             public Quaternion Clone(Quaternion value) { return value; }
@@ -36,6 +37,7 @@ namespace SharpGLTF.Animations
                 return CurveSampler.InterpolateCubic(start, outgoingTangent, end, incomingTangent, amount);
                 return CurveSampler.InterpolateCubic(start, outgoingTangent, end, incomingTangent, amount);
             }
             }
         }
         }
+
         sealed class _Array : ISamplerTraits<Single[]>
         sealed class _Array : ISamplerTraits<Single[]>
         {
         {
             public Single[] Clone(Single[] value) { return (Single[])value.Clone(); }
             public Single[] Clone(Single[] value) { return (Single[])value.Clone(); }
@@ -43,11 +45,13 @@ namespace SharpGLTF.Animations
             {
             {
                 return CurveSampler.InterpolateLinear(left, right, amount);
                 return CurveSampler.InterpolateLinear(left, right, amount);
             }
             }
+
             public float[] InterpolateCubic(float[] start, float[] outgoingTangent, float[] end, float[] incomingTangent, float amount)
             public float[] InterpolateCubic(float[] start, float[] outgoingTangent, float[] end, float[] incomingTangent, float amount)
             {
             {
                 return CurveSampler.InterpolateCubic(start, outgoingTangent, end, incomingTangent, amount);
                 return CurveSampler.InterpolateCubic(start, outgoingTangent, end, incomingTangent, amount);
             }
             }
         }
         }
+
         sealed class _Segment : ISamplerTraits<SEGMENT>
         sealed class _Segment : ISamplerTraits<SEGMENT>
         {
         {
             public SEGMENT Clone(SEGMENT value) { return new SEGMENT(value.ToArray()); }
             public SEGMENT Clone(SEGMENT value) { return new SEGMENT(value.ToArray()); }
@@ -55,11 +59,13 @@ namespace SharpGLTF.Animations
             {
             {
                 return new SEGMENT(CurveSampler.InterpolateLinear(left, right, amount));
                 return new SEGMENT(CurveSampler.InterpolateLinear(left, right, amount));
             }
             }
+
             public SEGMENT InterpolateCubic(SEGMENT start, SEGMENT outgoingTangent, SEGMENT end, SEGMENT incomingTangent, Single amount)
             public SEGMENT InterpolateCubic(SEGMENT start, SEGMENT outgoingTangent, SEGMENT end, SEGMENT incomingTangent, Single amount)
             {
             {
                 return new SEGMENT(CurveSampler.InterpolateCubic(start, outgoingTangent, end, incomingTangent, amount));
                 return new SEGMENT(CurveSampler.InterpolateCubic(start, outgoingTangent, end, incomingTangent, amount));
             }
             }
         }
         }
+
         sealed class _Sparse : ISamplerTraits<SPARSE>
         sealed class _Sparse : ISamplerTraits<SPARSE>
         {
         {
             public SPARSE Clone(SPARSE value) { return value; }
             public SPARSE Clone(SPARSE value) { return value; }
@@ -67,6 +73,7 @@ namespace SharpGLTF.Animations
             {
             {
                 return SPARSE.InterpolateLinear(left, right, amount);
                 return SPARSE.InterpolateLinear(left, right, amount);
             }
             }
+
             public SPARSE InterpolateCubic(SPARSE start, SPARSE outgoingTangent, SPARSE end, SPARSE incomingTangent, Single amount)
             public SPARSE InterpolateCubic(SPARSE start, SPARSE outgoingTangent, SPARSE end, SPARSE incomingTangent, Single amount)
             {
             {
                 return SPARSE.InterpolateCubic(start, outgoingTangent, end, incomingTangent, amount);
                 return SPARSE.InterpolateCubic(start, outgoingTangent, end, incomingTangent, amount);

+ 2 - 2
src/SharpGLTF.Core/Schema2/gltf.AnimationSampler.cs

@@ -1,8 +1,8 @@
 using System;
 using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
-using System.Text;
 using System.Linq;
 using System.Linq;
 using System.Numerics;
 using System.Numerics;
+using System.Text;
 
 
 using SharpGLTF.Animations;
 using SharpGLTF.Animations;
 using SharpGLTF.Collections;
 using SharpGLTF.Collections;
@@ -10,8 +10,8 @@ using SharpGLTF.Transforms;
 using SharpGLTF.Validation;
 using SharpGLTF.Validation;
 
 
 using ROLIST = System.Collections.Generic.IReadOnlyList<float>;
 using ROLIST = System.Collections.Generic.IReadOnlyList<float>;
-using SPARSE8 = SharpGLTF.Transforms.SparseWeight8;
 using SEGMENT = System.ArraySegment<float>;
 using SEGMENT = System.ArraySegment<float>;
+using SPARSE8 = SharpGLTF.Transforms.SparseWeight8;
 
 
 namespace SharpGLTF.Schema2
 namespace SharpGLTF.Schema2
 {
 {

+ 1 - 0
src/SharpGLTF.Toolkit/Scenes/SceneBuilder.Schema2.cs

@@ -550,6 +550,7 @@ namespace SharpGLTF.Scenes
                     if (!equalityComparer(av, bv)) throw new ArgumentException(nameof(b));
                     if (!equalityComparer(av, bv)) throw new ArgumentException(nameof(b));
                 }
                 }
             }
             }
+
             if (a.InterpolationMode == AnimationInterpolationMode.STEP)
             if (a.InterpolationMode == AnimationInterpolationMode.STEP)
             {
             {
                 if (b.MaxDegree != 0) throw new ArgumentException(nameof(b.MaxDegree));
                 if (b.MaxDegree != 0) throw new ArgumentException(nameof(b.MaxDegree));