void ReselectSolids::Run() { std::list<int> solids; heeksCAD->PickObjects(_("Select Solids"), MARKING_FILTER_SOLID | MARKING_FILTER_STL_SOLID); if(GetSolids( solids )) { heeksCAD->CreateUndoPoint(); m_solids->clear(); *m_solids = solids; ((ObjList*)m_object)->Clear(); m_object->ReloadPointers(); heeksCAD->Changed(); } else { wxMessageBox(_("Select cancelled. No solids were selected!")); } // get back to the operation's properties heeksCAD->ClearMarkedList(); heeksCAD->Mark(m_object); }
const cache_ragdollconstraint_t *GetConstraints() { return (cache_ragdollconstraint_t *)(GetSolids()+solidCount); }