mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-02 13:51:52 +00:00
UE1 models now handle frame index -1 properly.
This commit is contained in:
parent
f27acfa6b2
commit
8c0ad50db3
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ int FUE1Model::FindFrame( const char *name, bool nodefault )
|
||||||
void FUE1Model::RenderFrame( FModelRenderer *renderer, FGameTexture *skin, int frame, int frame2, double inter, int translation, const FTextureID* surfaceskinids)
|
void FUE1Model::RenderFrame( FModelRenderer *renderer, FGameTexture *skin, int frame, int frame2, double inter, int translation, const FTextureID* surfaceskinids)
|
||||||
{
|
{
|
||||||
// the moment of magic
|
// the moment of magic
|
||||||
if ( (frame >= numFrames) || (frame2 >= numFrames) ) return;
|
if ( (frame < 0) || (frame2 < 0) || (frame >= numFrames) || (frame2 >= numFrames) ) return;
|
||||||
renderer->SetInterpolation(inter);
|
renderer->SetInterpolation(inter);
|
||||||
int vsize, fsize = 0, vofs = 0;
|
int vsize, fsize = 0, vofs = 0;
|
||||||
for ( int i=0; i<numGroups; i++ ) fsize += groups[i].numPolys*3;
|
for ( int i=0; i<numGroups; i++ ) fsize += groups[i].numPolys*3;
|
||||||
|
|
Loading…
Reference in a new issue