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:
@ -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 */)
|
||||
|
Reference in New Issue
Block a user