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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-10-19 00:40:43 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-10-19 00:40:43 +0400
commit894daa01be1ba5b2f128b1e779d9a38c4c4e7700 (patch)
treee03309f3c35c2108fe8ac817336106b23e2301c2 /source/blender/freestyle/intern/system/PythonInterpreter.h
parent90b69a13a7f7b829c2eb314d1fd1efd56fd0a487 (diff)
parentbf09c851a97aba67b19a5fc85a91d874e28d1df1 (diff)
Merged changes in the trunk up to revision 32565.
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);