fix CMDL_HideModel

This commit is contained in:
Ricardo Luís Vaz Silva 2023-05-31 11:13:30 -03:00 committed by Rachael Alexanderson
parent 49eae74272
commit 0e438f10f3

View file

@ -330,6 +330,10 @@ void RenderFrameModels(FModelRenderer *renderer, FLevelLocals *Level, const FSpr
{
modelid = actor->modelData->models[i].modelID;
}
else if(actor->modelData->models.Size() > i && actor->modelData->models[i].modelID == -2)
{
continue;
}
else if(smf->modelsAmount > i)
{
modelid = smf->modelIDs[i];