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

Method OnRoomFaceAddVertToEdge

editor/editorView.cpp:1376–1386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1374}
1375
1376void CEditorView::OnRoomFaceAddVertToEdge() {
1377 void SplitEdge(room * rp, int facenum, int edgenum, float position);
1378
1379 char buf[10] = "0.5";
1380
1381 if (InputString(buf, sizeof(buf), "New point position",
1382 "Please enter the position of the new point, from 0.0 to 1.0")) {
1383 SplitEdge(Curroomp, Curface, Curedge, atof(buf));
1384 Curvert = Curedge + 1;
1385 }
1386}
1387
1388void CEditorView::OnRoomFaceMoveVertOnEdge() {
1389 void MoveVert(room * rp, int facenum, int vertnum, float new_position);

Callers

nothing calls this directly

Calls 2

InputStringFunction · 0.85
SplitEdgeFunction · 0.85

Tested by

no test coverage detected