fixed bug where the code used the old open function prototype in the MeshIOInterface

This commit is contained in:
Paolo Cignoni cignoni 2008-08-08 12:10:58 +00:00
parent 1092653a53
commit 4eaa6c3284

View File

@ -142,7 +142,11 @@ bool Open(MeshModel &mm, QString fileName)
MeshIOInterface* pCurrentIOPlugin = meshIOPlugins[idx-1];
int mask = 0;
if (!pCurrentIOPlugin->open(extension, fileName, mm ,mask,0,0/*gla*/))
FilterParameterSet prePar;
pCurrentIOPlugin->initPreOpenParameter(extension, fileName,prePar);
if (!pCurrentIOPlugin->open(extension, fileName, mm ,mask,prePar))
{
printf("Failed loading\n");
return false;