mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: mod_bmodel: do not try to load visibility if there is none, like for external bmodels
This commit is contained in:
@@ -3599,6 +3599,10 @@ Mod_LoadVisibility
|
||||
*/
|
||||
static void Mod_LoadVisibility( model_t *mod, dbspmodel_t *bmod )
|
||||
{
|
||||
// external bmodels have no visibility
|
||||
if( !bmod->visdata || !bmod->visdatasize )
|
||||
return;
|
||||
|
||||
mod->visdata = Mem_Malloc( mod->mempool, bmod->visdatasize );
|
||||
memcpy( mod->visdata, bmod->visdata, bmod->visdatasize );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user