=================== R_CheckForEntityDefsUsingModel =================== */
| 785 | =================== |
| 786 | */ |
| 787 | void R_CheckForEntityDefsUsingModel( idRenderModel *model ) { |
| 788 | int i, j; |
| 789 | idRenderWorldLocal *rw; |
| 790 | idRenderEntityLocal *def; |
| 791 | |
| 792 | for ( j = 0; j < tr.worlds.Num(); j++ ) { |
| 793 | rw = tr.worlds[j]; |
| 794 | |
| 795 | for ( i = 0 ; i < rw->entityDefs.Num(); i++ ) { |
| 796 | def = rw->entityDefs[i]; |
| 797 | if ( !def ) { |
| 798 | continue; |
| 799 | } |
| 800 | if ( def->parms.hModel == model ) { |
| 801 | //assert( 0 ); |
| 802 | // this should never happen but Radiant messes it up all the time so just free the derived data |
| 803 | R_FreeEntityDefDerivedData( def, false, false ); |
| 804 | } |
| 805 | } |
| 806 | } |
| 807 | } |
| 808 | |
| 809 | /* |
| 810 | =================== |
no test coverage detected