Browse Source

Set default values on Sampler

Daniel Hritzkiv 8 years ago
parent
commit
7245cceead
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/glTF2Asset.h

+ 1 - 1
code/glTF2Asset.h

@@ -800,7 +800,7 @@ namespace glTF2
         SamplerWrap wrapS;          //!< The texture wrapping in the S direction. (required)
         SamplerWrap wrapT;          //!< The texture wrapping in the T direction. (required)
 
-        Sampler() {}
+        Sampler() { SetDefaults(); }
         void Read(Value& obj, Asset& r);
         void SetDefaults();
     };