Notifications
Clear all

[Closed] SDK: check if ReferenceTarget is INode without a dynamic cast?

I’m traversing a massive scene graph and looking for INodes, which are mixed in with all kinds of other ReferenceTargets. Any way I can figure out if a ReferenceTarget is an INode without using dynamic_cast<INode*>(refTarget)!=NULL? For the number of objects I’m checking, it has poor performance.

1 Reply

Ah, seems like refTarget->GetInterface(INODE_INTERFACE) works great