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

Method OnRoomFaceSplitFace

editor/editorView.cpp:1399–1414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1397}
1398
1399void CEditorView::OnRoomFaceSplitFace() {
1400 void SplitFace(room * rp, int facenum, int v0, int v1);
1401
1402 if ((Curroomp != Markedroomp) || (Curface != Markedface)) {
1403 OutrageMessageBox("Cannot split face: the Marked & Current faces must be the same for this operation.");
1404 return;
1405 }
1406
1407 int n_faces = Curroomp->num_faces;
1408
1409 SplitFace(Curroomp, Curface, Curvert, Markedvert);
1410
1411 Curface = n_faces - 1;
1412 Curedge = Curvert = 0;
1413 Markedroomp = NULL;
1414}
1415
1416void CEditorView::OnRoomFaceDeleteVertOnEdge() {
1417 void DeleteVert(room * rp, int facenum, int vertnum);

Callers

nothing calls this directly

Calls 2

OutrageMessageBoxFunction · 0.85
SplitFaceFunction · 0.85

Tested by

no test coverage detected