Message 1 of 2
3ds Max 2018, SDK Viewport GetHit function problem

Not applicable
08-31-2017
02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
For select some objects in my plugin I use a code like this:
void selectnodes(IObjParam *ip, IPoint2 *p, Tab<INode *> &nodes){
ViewExp *vpt = &ip->GetActiveViewExp(); vpt->ClearHitList(); ip->BoxPickNode(vpt, p, true); int nodes_count = vpt->HitCount(); for (int i=0; i<nodes_count; i++){ INode *node=vpt->GetHit(i); if (node) nodes.Append(node); } }
3ds max 2018 crashed when i>0 (I try to select more then one object)
vpt->GetHit(i);
on previouse version of 3ds max it work rigth.
how I can fix it?