@@ -2108,10 +2108,16 @@ void R_AddEntitySurfaces()
21082108 if ( ent->e .scale == 0 ) {
21092109 ent->e .scale = 1 ;
21102110 }
2111+ if ( ent->e .animationHandle == 0 ) {
2112+ ent->e .animationHandle = ent->e .animationHandle2 ;
2113+ } else if ( ent->e .animationHandle2 == 0 ) {
2114+ ent->e .animationHandle2 = ent->e .animationHandle ;
2115+ }
2116+
21112117 RE_BuildSkeleton ( &ent->e .skeleton , ent->e .animationHandle , ent->e .startFrame , ent->e .endFrame ,
21122118 ent->e .lerp , ent->e .clearOrigin );
21132119 ent->e .skeleton .scale = ent->e .scale ;
2114- if ( ent->e .blendLerp > 0.0 || true ) {
2120+ if ( ent->e .blendLerp > 0.0 ) {
21152121 refSkeleton_t skel;
21162122 RE_BuildSkeleton ( &skel, ent->e .animationHandle2 , ent->e .startFrame2 , ent->e .endFrame2 ,
21172123 ent->e .lerp2 , ent->e .clearOrigin2 );
@@ -2132,11 +2138,14 @@ void R_AddEntitySurfaces()
21322138 }
21332139 if ( ent->e .animationHandle == 0 ) {
21342140 ent->e .animationHandle = ent->e .animationHandle2 ;
2141+ } else if ( ent->e .animationHandle2 == 0 ) {
2142+ ent->e .animationHandle2 = ent->e .animationHandle ;
21352143 }
2144+
21362145 ent->e .skeleton .scale = ent->e .scale ;
21372146 RE_BuildSkeleton ( &ent->e .skeleton , ent->e .animationHandle , ent->e .startFrame , ent->e .endFrame ,
21382147 ent->e .lerp , ent->e .clearOrigin );
2139- if ( ent->e .blendLerp > 0.0 || true ) {
2148+ if ( ent->e .blendLerp > 0.0 ) {
21402149 refSkeleton_t skel;
21412150 RE_BuildSkeleton ( &skel, ent->e .animationHandle2 , ent->e .startFrame2 , ent->e .endFrame2 ,
21422151 ent->e .lerp2 , ent->e .clearOrigin2 );
0 commit comments