remove any cast

This commit is contained in:
Christopher Lackner 2019-08-06 20:13:31 +02:00
parent fd42f24d37
commit 34c1e0667c

View File

@ -198,13 +198,9 @@ DLL_HEADER void ExportSTL(py::module & m)
{ py::gil_scoped_acquire aq; { py::gil_scoped_acquire aq;
if(pars) if(pars)
{ {
try auto mp_flags = pars->geometrySpecificParameters;
{ auto mp_kwargs = CreateDictFromFlags(mp_flags);
auto mp_flags = any_cast<Flags>(pars->geometrySpecificParameters); CreateSTLParametersFromKwargs(stlparam, mp_kwargs);
auto mp_kwargs = CreateDictFromFlags(mp_flags);
CreateSTLParametersFromKwargs(stlparam, mp_kwargs);
}
catch(std::bad_any_cast) {}
mp = *pars; mp = *pars;
} }
CreateSTLParametersFromKwargs(stlparam, kwargs); CreateSTLParametersFromKwargs(stlparam, kwargs);