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

Method CmCheckTextures

roomedit/source/editcli.cpp:4364–4387  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

4362// -------------
4363//
4364void TEditorClient::CmCheckTextures ()
4365{
4366 // Ignore if "insert object" mode
4367 if ( InsertingObject )
4368 return;
4369
4370 SET_HELP_CONTEXT(Check_for_missing_textures);
4371
4372 // UNDO
4373 StartUndoRecording("Check missing");
4374
4375 // Look for missing textures names
4376 // LEVEL CHANGES: Some missing names may be set to default names
4377 if ( CheckTextures() )
4378 {
4379 // Redraw map to go to the invalid object
4380 RefreshWindows ();
4381 }
4382
4383 // UNDO
4384 StopUndoRecording();
4385
4386 RESTORE_HELP_CONTEXT();
4387}
4388
4389
4390/////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

StartUndoRecordingFunction · 0.85
CheckTexturesFunction · 0.85
StopUndoRecordingFunction · 0.85

Tested by

no test coverage detected