Fix and improve inheritance warnings.

We were warnings against eInheritRSrs, which is actually the one type of
ineritance we're good with. It's eInheritRrSs we should freak out about.

That said, no need to do it for the root node -- at that point there is
no global transform to worry about.
This commit is contained in:
Par Winzell 2017-10-27 15:47:49 -07:00
parent 22354fd7ce
commit 075dc4a8c3
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()); fmt::printf("node %d: %s\n", nodeIndex, newPath.c_str());
} }
static int warnRSrsCount = 0; static int warnRrSsCount = 0;
static int warnRrsCount = 0; static int warnRrsCount = 0;
if (lInheritType == FbxTransform::eInheritRSrs) { if (lInheritType == FbxTransform::eInheritRrSs && !parentName.empty()) {
if (++warnRSrsCount == 1) { if (++warnRrSsCount == 1) {
fmt::printf("Warning: node %s uses unsupported transform inheritance type 'eInheritRSrs'.\n", newPath); fmt::printf("Warning: node %s uses unsupported transform inheritance type 'eInheritRrSs'.\n", newPath);
fmt::printf(" (Further warnings of this type squelched.)\n"); fmt::printf(" (Further warnings of this type squelched.)\n");
} }