MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnRoomDeleteVert

Method OnRoomDeleteVert

editor/editorView.cpp:1363–1374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1361}
1362
1363void CEditorView::OnRoomDeleteVert() {
1364 if (Curroomp->faces[Curface].num_verts <= 3) {
1365 OutrageMessageBox("You cannot delete a vertex from a face with three or fewer vertices.");
1366 return;
1367 }
1368
1369 if (OutrageMessageBox(MBOX_YESNO, "Are you sure you want to delete vertex %d (%d) from room %d face %d?", Curvert,
1370 Curroomp->faces[Curface].face_verts[Curvert], ROOMNUM(Curroomp), Curface) == IDYES) {
1371 DeletePointFromFace(Curroomp, Curface, Curvert);
1372 Curvert = 0;
1373 }
1374}
1375
1376void CEditorView::OnRoomFaceAddVertToEdge() {
1377 void SplitEdge(room * rp, int facenum, int edgenum, float position);

Callers

nothing calls this directly

Calls 2

OutrageMessageBoxFunction · 0.85
DeletePointFromFaceFunction · 0.85

Tested by

no test coverage detected