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

pull/1423/head
Daniel Hritzkiv 2017-08-30 21:50:06 -04:00
parent 11cb9ac139
commit 0cf69479c3
No known key found for this signature in database
GPG Key ID: D1D19875679D5CBF
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ namespace glTF2 {
}
}
if (pbrMetallicRoughness.MemberCount() > 0) {
if (!pbrMetallicRoughness.ObjectEmpty()) {
obj.AddMember("pbrMetallicRoughness", pbrMetallicRoughness, w.mAl);
}