Notifications
Clear all
[Closed] SDK: check if ReferenceTarget is INode without a dynamic cast?
Sep 28, 2016 4:17 am
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
Sep 28, 2016 4:17 am
Ah, seems like refTarget->GetInterface(INODE_INTERFACE) works great