|
|
@ -254,8 +254,7 @@ namespace NifOsg
|
|
|
|
for (size_t i = 0; i < numRoots; ++i)
|
|
|
|
for (size_t i = 0; i < numRoots; ++i)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const Nif::Record *r = nif->getRoot(i);
|
|
|
|
const Nif::Record *r = nif->getRoot(i);
|
|
|
|
assert(r != nullptr);
|
|
|
|
if (r && r->recType == Nif::RC_NiSequenceStreamHelper)
|
|
|
|
if (r->recType == Nif::RC_NiSequenceStreamHelper)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
seq = static_cast<const Nif::NiSequenceStreamHelper*>(r);
|
|
|
|
seq = static_cast<const Nif::NiSequenceStreamHelper*>(r);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -312,7 +311,10 @@ namespace NifOsg
|
|
|
|
for (size_t i = 0; i < numRoots; ++i)
|
|
|
|
for (size_t i = 0; i < numRoots; ++i)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const Nif::Record* r = nif->getRoot(i);
|
|
|
|
const Nif::Record* r = nif->getRoot(i);
|
|
|
|
if (const Nif::Node* nifNode = dynamic_cast<const Nif::Node*>(r))
|
|
|
|
if (!r)
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
const Nif::Node* nifNode = dynamic_cast<const Nif::Node*>(r);
|
|
|
|
|
|
|
|
if (nifNode)
|
|
|
|
roots.emplace_back(nifNode);
|
|
|
|
roots.emplace_back(nifNode);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (roots.empty())
|
|
|
|
if (roots.empty())
|
|
|
|