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

Method OnPathReorientViewerButton

editor/PathPadDialog.cpp:514–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514void CPathPadDialog::OnPathReorientViewerButton() {
515 if (Num_game_paths < 1) {
516 MessageBox("There are no paths to operate on.");
517 return;
518 }
519
520 int p = D3EditState.current_path;
521 int n = D3EditState.current_node;
522
523 game_path *gp = &GamePaths[p];
524
525 matrix node_orient;
526
527 vm_VectorToMatrix(&node_orient, &gp->pathnodes[n].fvec, &gp->pathnodes[n].uvec, NULL);
528 ObjSetOrient(Viewer_object, &node_orient);
529
530 World_changed = 1;
531 UpdateDialog();
532}
533
534void CPathPadDialog::OnKillfocusPathIncText() {
535 CEdit *ebox;

Callers

nothing calls this directly

Calls 2

ObjSetOrientFunction · 0.85
vm_VectorToMatrixFunction · 0.50

Tested by

no test coverage detected