Merge pull request #28 from facebookincubator/bug-fix-einherit-warning

Fix and improve inheritance warnings.
This commit is contained in:
Pär Winzell 2017-10-27 15:52:35 -07:00 committed by GitHub
commit 34800d056a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -797,11 +797,11 @@ static void ReadNodeHierarchy(
fmt::printf("node %d: %s\n", nodeIndex, newPath.c_str());
}
static int warnRSrsCount = 0;
static int warnRrSsCount = 0;
static int warnRrsCount = 0;
if (lInheritType == FbxTransform::eInheritRSrs) {
if (++warnRSrsCount == 1) {
fmt::printf("Warning: node %s uses unsupported transform inheritance type 'eInheritRSrs'.\n", newPath);
if (lInheritType == FbxTransform::eInheritRrSs && !parentName.empty()) {
if (++warnRrSsCount == 1) {
fmt::printf("Warning: node %s uses unsupported transform inheritance type 'eInheritRrSs'.\n", newPath);
fmt::printf(" (Further warnings of this type squelched.)\n");
}