//////////////////////////////////////////////////////////////// TEditorClient -------------
| 4362 | // ------------- |
| 4363 | // |
| 4364 | void 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 | ///////////////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected