Use `!ObjectEmpty()` vs. `MemberCount() > 0`
parent
11cb9ac139
commit
0cf69479c3
|
@ -303,7 +303,7 @@ namespace glTF2 {
|
|||
}
|
||||
}
|
||||
|
||||
if (pbrMetallicRoughness.MemberCount() > 0) {
|
||||
if (!pbrMetallicRoughness.ObjectEmpty()) {
|
||||
obj.AddMember("pbrMetallicRoughness", pbrMetallicRoughness, w.mAl);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue