3 #define setmodel(e, m) _setmodel((e), (m).model_str())
6 ATTRIB(Model, m_id, int, 0);
7 ATTRIB(Model, model_str, string());
8 CONSTRUCTOR(Model, string() path)
11 this.model_str = path;
13 METHOD(Model, model_precache, void(Model this))
16 string s = this.model_str();
17 if (s != "" && s != "null" && !fexists(s)) {
18 LOG_WARNF("Missing model: \"%s\"", s);
21 profile(sprintf("precache_model(\"%s\")", s));