Use !ObjectEmpty() vs. MemberCount() > 0

This commit is contained in:
Daniel Hritzkiv
2017-09-11 10:50:38 -04:00
parent 11cb9ac139
commit 0cf69479c3
+1 -1
View File
@@ -303,7 +303,7 @@ namespace glTF2 {
}
}
if (pbrMetallicRoughness.MemberCount() > 0) {
if (!pbrMetallicRoughness.ObjectEmpty()) {
obj.AddMember("pbrMetallicRoughness", pbrMetallicRoughness, w.mAl);
}