]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Viewmodels: fix r_drawviewmodel
authorTimePath <andrew.hardaker1995@gmail.com>
Fri, 6 Nov 2015 10:41:17 +0000 (21:41 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Fri, 6 Nov 2015 10:41:17 +0000 (21:41 +1100)
qcsrc/common/weapons/all.qc

index 77934ec004ed63da3f6a261b224349bb496fe664..fed883f069ead505e0afe43ec181ac9b49be6534 100644 (file)
@@ -449,6 +449,7 @@ void CL_WeaponEntity_SetModel(entity this, string name)
                                this.weaponchild = new(weaponchild);
 #ifdef CSQC
                                this.weaponchild.drawmask = MASK_NORMAL;
+                               this.weaponchild.renderflags |= RF_VIEWMODEL;
 #endif
                        }
                        _setmodel(this.weaponchild, W_Model(strcat("v_", name, ".md3")));