Skip to content

Commit febdf35

Browse files
fix: editor model load issue
1 parent 2ac35ef commit febdf35

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

editor/editor.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,14 @@ pl__show_editor_window(plAppData* ptAppData)
10611061
{
10621062
if(ptAppData->sbtTestModels[i].bSelected)
10631063
{
1064-
gptModelLoader->load_gltf(ptAppData->ptCompLibrary, ptAppData->sbtTestModels[i].acVariants[0].acFilePath, nullptr, &tLoaderData0);
1064+
for(uint32_t j = 0; j < ptAppData->sbtTestModels[i].uVariantCount; j++)
1065+
{
1066+
if(ptAppData->sbtTestModels[i].acVariants[j].acType[4] != '-')
1067+
{
1068+
gptModelLoader->load_gltf(ptAppData->ptCompLibrary, ptAppData->sbtTestModels[i].acVariants[j].acFilePath, nullptr, &tLoaderData0);
1069+
break;
1070+
}
1071+
}
10651072
}
10661073
}
10671074

0 commit comments

Comments
 (0)