Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/system/PythonInterpreter.h')
-rwxr-xr-xsource/blender/freestyle/intern/system/PythonInterpreter.h2
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);