2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 10:37:41 -04:00

Fix some stupid stuff that would have crashed the plugin...

This commit is contained in:
2011-04-15 17:00:26 -04:00
parent 92defe7570
commit 205105ef23
11 changed files with 20 additions and 28 deletions

View File

@ -4470,19 +4470,15 @@ static void GetMtlNodes(Mtl *mtl, INodeTab& nodes)
ReferenceMaker *rm = di.Next();
while (rm != nil)
{
for (int i = 0; i < rm->NumRefs(); i++)
if (rm->SuperClassID() == BASENODE_CLASS_ID)
{
RefTargetHandle item = rm->GetReference(i);
if (item->SuperClassID() == BASENODE_CLASS_ID)
{
INode *node = (INode*)item;
if (node->GetMtl() == mtl)
nodes.Append(1, &node);
}
INode *node = (INode*)rm;
if (node->GetMtl() == mtl)
nodes.Append(1, &node);
}
rm = di.Next();
}
rm = di.Next();
}
int hsMaterialConverter::GetMaterialArray(Mtl *mtl, hsTArray<hsGMaterial*>& out, UInt32 multiIndex /* = 0 */)