diff options
Diffstat (limited to 'source/blender/freestyle/intern/system/PythonInterpreter.h')
-rwxr-xr-x | source/blender/freestyle/intern/system/PythonInterpreter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/system/PythonInterpreter.h b/source/blender/freestyle/intern/system/PythonInterpreter.h index ee2f2085d12..934755b8231 100755 --- a/source/blender/freestyle/intern/system/PythonInterpreter.h +++ b/source/blender/freestyle/intern/system/PythonInterpreter.h @@ -77,7 +77,7 @@ class LIB_SYSTEM_EXPORT PythonInterpreter : public Interpreter int status = BPY_run_python_script(_context, fn, NULL, reports); #else int status; - Text *text = add_text(fn, G.sce); + Text *text = add_text(fn, G.main->name); if (text) { status = BPY_run_python_script(_context, NULL, text, reports); unlink_text(G.main, text); |