瀏覽代碼

Set default values on Sampler

Daniel Hritzkiv 8 年之前
父節點
當前提交
7245cceead
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();
     };