Set default values on Sampler
authorDaniel Hritzkiv <daniel.hritzkiv@gmail.com>
Mon, 4 Sep 2017 02:03:02 +0000 (22:03 -0400)
committerDaniel Hritzkiv <daniel.hritzkiv@gmail.com>
Mon, 11 Sep 2017 14:55:51 +0000 (10:55 -0400)
code/glTF2Asset.h

index 8755942..711e823 100644 (file)
@@ -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();
     };