MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / CmMiscLDSplitAdd

Method CmMiscLDSplitAdd

roomedit/source/editcli.cpp:3403–3432  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////// TEditorClient -------------

Source from the content-addressed store, hash-verified

3401// -------------
3402//
3403void TEditorClient::CmMiscLDSplitAdd ()
3404{
3405 // Ignore if "insert object" mode
3406 if ( InsertingObject )
3407 return;
3408
3409 SET_HELP_CONTEXT(Split_LineDef_and_Add_new_Vertex);
3410
3411 // Check at least one object selected
3412 if ( CheckSelection (1, -1) == FALSE )
3413 goto End;
3414
3415 // UNDO
3416 StartUndoRecording("Split LineDef");
3417
3418 // Split LineDef and add a vertex
3419 SplitLineDefs (Selected);
3420
3421 // UNDO
3422 StopUndoRecording();
3423
3424 // SELECTION IS STILL VALID
3425 // Restore selection
3426 SetupSelection (FALSE);
3427
3428 // Redraw map, info windows and status bar
3429 RefreshWindows();
3430End:
3431 RESTORE_HELP_CONTEXT();
3432}
3433
3434
3435/////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

StartUndoRecordingFunction · 0.85
SplitLineDefsFunction · 0.85
StopUndoRecordingFunction · 0.85

Tested by

no test coverage detected