}
animdecide_init(self); // FIXME only do this on model change
animdecide_setframes(self, flg, doblend, anim_frame, anim_frame1time, anim_frame2, anim_frame2time);
+ print(sprintf("frames: %d %d\n", self.anim_frame, self.anim_frame2));
float sf = 0;
if(self.anim_saveframe != self.anim_frame || self.anim_saveframe1time != self.anim_frame1time)
sf |= CSQCMODEL_PROPERTY_FRAME;
float bonetype = e.skeleton_bonetype[bone];
for(++bone; (bone < n) && (e.skeleton_bonetype[bone] == bonetype); ++bone)
;
- float lastbone = bone - 1;
- if(bonetype == BONETYPE_LOWER)
+ if(bonetype == BONETYPE_LOWER && 1)
{
// only show frames 1+3
e.lerpfrac = 0;
e.lerpfrac3 = 0;
e.lerpfrac4 = savelerpfrac4 * 2;
}
+ //print(sprintf("Run: bone %d to %d, type %d\n", firstbone + 1, bone, bonetype));
+ //print(sprintf("frame %d %d %d %d lerpfrac * %d %d %d\n", e.frame, e.frame2, e.frame3, e.frame4, e.lerpfrac, e.lerpfrac3, e.lerpfrac4));
skel_build(s, e, m, 0, firstbone + 1, bone);
}
e.lerpfrac = savelerpfrac;