Skip to content

Commit

Permalink
Merge pull request #28 from facebookincubator/bug-fix-einherit-warning
Browse files Browse the repository at this point in the history
Fix and improve inheritance warnings.
  • Loading branch information
zellski committed Oct 27, 2017
2 parents 22354fd + 075dc4a commit 34800d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Fbx2Raw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 34800d0

Please sign in to comment.