Fix bind failure due to function overload and move to std bind

This commit is contained in:
Jeremy Rimpo
2017-11-05 03:49:56 -06:00
parent 6a5ab7f747
commit 85cb9b18e4
+1 -1
View File
@@ -963,7 +963,7 @@ bool PythonRunner::initPython(const QString &pythonPath)
bool handled_exec_file(bpy::str filename, bpy::object globals = bpy::object(), bpy::object locals = bpy::object())
{
return bpy::handle_exception(boost::bind(bpy::exec_file, filename, globals, locals));
return bpy::handle_exception(std::bind<bpy::object(&)(bpy::str, bpy::object, bpy::object)>(bpy::exec_file, filename, globals, locals));
}