From 6d202bf5b0b21679bc0f93678ca273efeebd885e Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 12 Jan 2010 07:32:05 +0000 Subject: [PATCH] fix typo in SV_GetEntityLocalTagMatrix, should fix attachment on MD3 models git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9829 d7cf8633-e32d-0410-b094-e92efae38249 --- svvm_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svvm_cmds.c b/svvm_cmds.c index f0954e82..42d29acf 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -2627,7 +2627,7 @@ void SV_GetEntityMatrix (prvm_edict_t *ent, matrix4x4_t *out, qboolean viewmatri int SV_GetEntityLocalTagMatrix(prvm_edict_t *ent, int tagindex, matrix4x4_t *out) { dp_model_t *model; - if (tagindex >= 0 && (model = SV_GetModelFromEdict(ent)) && model->num_bones) + if (tagindex >= 0 && (model = SV_GetModelFromEdict(ent)) && model->animscenes) { VM_GenerateFrameGroupBlend(ent->priv.server->framegroupblend, ent); VM_FrameBlendFromFrameGroupBlend(ent->priv.server->frameblend, ent->priv.server->framegroupblend, model); -- 2.39.2