@@ -2108,10 +2108,16 @@ void R_AddEntitySurfaces()
2108
2108
if ( ent->e .scale == 0 ) {
2109
2109
ent->e .scale = 1 ;
2110
2110
}
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
+
2111
2117
RE_BuildSkeleton ( &ent->e .skeleton , ent->e .animationHandle , ent->e .startFrame , ent->e .endFrame ,
2112
2118
ent->e .lerp , ent->e .clearOrigin );
2113
2119
ent->e .skeleton .scale = ent->e .scale ;
2114
- if ( ent->e .blendLerp > 0.0 || true ) {
2120
+ if ( ent->e .blendLerp > 0.0 ) {
2115
2121
refSkeleton_t skel;
2116
2122
RE_BuildSkeleton ( &skel, ent->e .animationHandle2 , ent->e .startFrame2 , ent->e .endFrame2 ,
2117
2123
ent->e .lerp2 , ent->e .clearOrigin2 );
@@ -2132,11 +2138,14 @@ void R_AddEntitySurfaces()
2132
2138
}
2133
2139
if ( ent->e .animationHandle == 0 ) {
2134
2140
ent->e .animationHandle = ent->e .animationHandle2 ;
2141
+ } else if ( ent->e .animationHandle2 == 0 ) {
2142
+ ent->e .animationHandle2 = ent->e .animationHandle ;
2135
2143
}
2144
+
2136
2145
ent->e .skeleton .scale = ent->e .scale ;
2137
2146
RE_BuildSkeleton ( &ent->e .skeleton , ent->e .animationHandle , ent->e .startFrame , ent->e .endFrame ,
2138
2147
ent->e .lerp , ent->e .clearOrigin );
2139
- if ( ent->e .blendLerp > 0.0 || true ) {
2148
+ if ( ent->e .blendLerp > 0.0 ) {
2140
2149
refSkeleton_t skel;
2141
2150
RE_BuildSkeleton ( &skel, ent->e .animationHandle2 , ent->e .startFrame2 , ent->e .endFrame2 ,
2142
2151
ent->e .lerp2 , ent->e .clearOrigin2 );
0 commit comments