void Select_Delete( void ) { brush_s* brush; g_ptrSelectedFaces.RemoveAll(); g_ptrSelectedFaceBrushes.RemoveAll(); //selected_face = NULL; clearSelection(); g_qeglobals.d_select_count = 0; g_qeglobals.d_num_move_points = 0; while ( selected_brushes.next != &selected_brushes ) { brush = selected_brushes.next; if ( brush->patchBrush ) { //Patch_Delete(brush->nPatchID); Patch_Delete( brush->pPatch ); } Brush_Free( brush ); } // FIXME: remove any entities with no brushes Sys_UpdateWindows( W_ALL ); }
void WINAPI QERApp_DeletePatch(int index) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); patchMesh_t *pPatch = g_pParentWnd->GetPlugInMgr().FindPatchHandle(index); if (pPatch) { brush_t *pb = pPatch->pSymbiot; Patch_Delete( pPatch ); if (pb) Brush_Free( pb ); } #ifdef _DEBUG Sys_Printf("Warning: QERApp_DeletePatch: FindPatchHandle failed\n"); #endif }
void Select_Delete (void) { brush_t *brush; selected_face = NULL; g_qeglobals.d_select_mode = sel_brush; g_qeglobals.d_select_count = 0; g_qeglobals.d_num_move_points = 0; while (selected_brushes.next != &selected_brushes) { brush = selected_brushes.next; if (brush->patchBrush) Patch_Delete(brush->nPatchID); Brush_Free (brush); } // FIXME: remove any entities with no brushes Sys_MarkMapModified(); Sys_UpdateWindows (W_ALL); }