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

Method CmCheckNames

roomedit/source/editcli.cpp:4394–4417  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

4392// -------------
4393//
4394void TEditorClient::CmCheckNames ()
4395{
4396 // Ignore if "insert object" mode
4397 if ( InsertingObject )
4398 return;
4399
4400 SET_HELP_CONTEXT(Check_textures_names);
4401
4402 // UNDO
4403 StartUndoRecording("Check names");
4404
4405 // Check that textures names are valid
4406 // LEVEL CHANGES: Some invalid textures names may be set to default names
4407 if ( CheckTextureNames() )
4408 {
4409 // Redraw map to go to the invalid object
4410 RefreshWindows ();
4411 }
4412
4413 // UNDO
4414 StopUndoRecording();
4415
4416 RESTORE_HELP_CONTEXT();
4417}
4418
4419
4420/////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

StartUndoRecordingFunction · 0.85
CheckTextureNamesFunction · 0.85
StopUndoRecordingFunction · 0.85

Tested by

no test coverage detected