PyAPI: add imports arg to BPY_execute_string
[blender.git] / source / blender / freestyle / intern / system / PythonInterpreter.h
index 4f5e94ef7a0db13a93af7a831128f117188b729a..cb49e7718a0239a3f6dcbac877db43d19bee1597 100644 (file)
@@ -112,7 +112,7 @@ public:
 
                BKE_reports_clear(reports);
 
 
                BKE_reports_clear(reports);
 
-               if (!BPY_execute_string(_context, str.c_str())) {
+               if (!BPY_execute_string(_context, NULL, str.c_str())) {
                        BPy_errors_to_report(reports);
                        cerr << "\nError executing Python script from PythonInterpreter::interpretString" << endl;
                        cerr << "Name: " << name << endl;
                        BPy_errors_to_report(reports);
                        cerr << "\nError executing Python script from PythonInterpreter::interpretString" << endl;
                        cerr << "Name: " << name << endl;