From 1d98e31b4700c4c78f5ec0825d4197ace7c24696 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 10 Mar 2012 19:58:43 +0100 Subject: [PATCH] improve last fix ;) --- qcsrc/client/csqcmodel_hooks.qc | 2 +- qcsrc/csqcmodellib/cl_model.qc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index f01a2c050..b93bca47f 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -287,7 +287,7 @@ void CSQCModel_AutoTagIndex_Apply(void) } // recursive predraw call to fix issues with forcemodels and LOD if bone indexes mismatch - if(self.tag_entity) + if(self.tag_entity.classname == "csqcmodel") { entity oldself = self; self = self.tag_entity; diff --git a/qcsrc/csqcmodellib/cl_model.qc b/qcsrc/csqcmodellib/cl_model.qc index c54593be0..3b54263f7 100644 --- a/qcsrc/csqcmodellib/cl_model.qc +++ b/qcsrc/csqcmodellib/cl_model.qc @@ -183,6 +183,7 @@ void CSQCModel_Read(float isnew) float islocalplayer = (self.entnum == player_localnum + 1); float isnolocalplayer = (isplayer && (self.entnum != player_localnum + 1)); + self.classname = "csqcmodel"; self.iflags |= IFLAG_ANGLES; // interpolate angles too { CSQCMODEL_HOOK_PREUPDATE } -- 2.39.2