- Backend update from Raze, mostly maintenance changes without new functionality.

This commit is contained in:
Christoph Oelckers 2022-08-11 22:51:19 +02:00
commit c89ae6358e
22 changed files with 90 additions and 43 deletions

View file

@ -221,10 +221,12 @@ void FUE1Model::UnloadGeometry()
groups.Reset();
}
int FUE1Model::FindFrame( const char *name )
int FUE1Model::FindFrame( const char *name, bool nodefault )
{
// unsupported, there are no named frames
return -1;
// there are no named frames, but we need something here to properly interface with it. So just treat the string as an index number.
auto index = strtol(name, nullptr, 0);
if (index < 0 || index >= numFrames) return FErr_NotFound;
return index;
}
void FUE1Model::RenderFrame( FModelRenderer *renderer, FGameTexture *skin, int frame, int frame2, double inter, int translation, const FTextureID* surfaceskinids)