fix filter deprecation

This commit is contained in:
alemuntoni 2021-11-11 10:50:24 +01:00
parent cbae46ce8c
commit f39845f788

View File

@ -64,10 +64,10 @@ void pymeshlab::FunctionSet::loadFilterPlugin(FilterPlugin* fp)
filterSet.insert(f);
// Just for actual PyMeshLab version; this portion of code will be removed soon
QString oldPythonFilterName = computePythonName(fp->pythonFilterName(act));
QString oldPythonFilterName = computePythonName(fp->filterName(act));
f.setPythonFunctionName(oldPythonFilterName);
f.setDeprecated("You should use " + pythonFilterName.toStdString() +
" instead of " + oldPythonFilterName.toStdString() + ".");
f.setDeprecated("You should use '" + pythonFilterName.toStdString() +
"' instead of '" + oldPythonFilterName.toStdString() + "'.");
filterSet.insert(f);
}
}