]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
improve last fix ;)
authorRudolf Polzer <divverent@xonotic.org>
Sat, 10 Mar 2012 18:58:43 +0000 (19:58 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 10 Mar 2012 18:58:43 +0000 (19:58 +0100)
qcsrc/client/csqcmodel_hooks.qc
qcsrc/csqcmodellib/cl_model.qc

index f01a2c0501685cfb5b03479bf8f32435ad36a8cd..b93bca47fea1b30716a74ea21fffcdf9cc30b0da 100644 (file)
@@ -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;
index c54593be022ef17b1670bbb0df839335e754451c..3b54263f712370591316b83e902feb57752f305c 100644 (file)
@@ -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 }