mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Save the vpath in the model.
This will be used for restricting searches for auxiliary model files.
This commit is contained in:
parent
83c47aacef
commit
328b997843
2 changed files with 2 additions and 2 deletions
|
@ -350,6 +350,7 @@ typedef enum {mod_brush, mod_sprite, mod_alias, mod_iqm} modtype_t;
|
|||
|
||||
typedef struct model_s {
|
||||
char name[MAX_QPATH];
|
||||
const struct vpath_s *vpath;// virtual path where this model was found
|
||||
qboolean needload; // bmodels and sprites don't cache normally
|
||||
aliashdr_t *aliashdr; // if not null, alias model is not cached
|
||||
qboolean hasfullbrights;
|
||||
|
|
|
@ -178,14 +178,13 @@ Mod_RealLoadModel (model_t *mod, qboolean crash, cache_allocator_t allocator)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
// allocate a new model
|
||||
if (loadname)
|
||||
free (loadname);
|
||||
loadname = QFS_FileBase (mod->name);
|
||||
|
||||
loadmodel = mod;
|
||||
|
||||
// fill it in
|
||||
mod->vpath = qfs_foundfile.vpath;
|
||||
mod->fullbright = 0;
|
||||
mod->shadow_alpha = 255;
|
||||
mod->min_light = 0.0;
|
||||
|
|
Loading…
Reference in a new issue