File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -841,25 +841,25 @@ static std::string decodeUri(const char* uri)
841
841
842
842
void writeSampler (std::string& json, const cgltf_sampler& sampler)
843
843
{
844
- if (sampler.mag_filter != 0 )
844
+ if (sampler.mag_filter != cgltf_filter_type_undefined )
845
845
{
846
846
comma (json);
847
847
append (json, " \" magFilter\" :" );
848
848
append (json, size_t (sampler.mag_filter ));
849
849
}
850
- if (sampler.min_filter != 0 )
850
+ if (sampler.min_filter != cgltf_filter_type_undefined )
851
851
{
852
852
comma (json);
853
853
append (json, " \" minFilter\" :" );
854
854
append (json, size_t (sampler.min_filter ));
855
855
}
856
- if (sampler.wrap_s != 10497 )
856
+ if (sampler.wrap_s != cgltf_wrap_mode_repeat )
857
857
{
858
858
comma (json);
859
859
append (json, " \" wrapS\" :" );
860
860
append (json, size_t (sampler.wrap_s ));
861
861
}
862
- if (sampler.wrap_t != 10497 )
862
+ if (sampler.wrap_t != cgltf_wrap_mode_repeat )
863
863
{
864
864
comma (json);
865
865
append (json, " \" wrapT\" :" );
You can’t perform that action at this time.
0 commit comments