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>2011-01-09 18:07:14 +0300
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2011-01-09 18:07:14 +0300
commit0ec378f3fea3be9235b5bc8cb976d6126ae808f5 (patch)
tree5266bf2dff77d453046265892380e441cb4643be /source/blender/freestyle/intern/system
parentddcb91fc213cb9d9f87558f88a4831cd4c8e2791 (diff)
parent99e203dbd46237c204fa697374e21769473955f5 (diff)
Merged changes in the trunk up to revision 34193.
Conflicts resolved: source/blender/editors/animation/anim_channels_defines.c source/blender/editors/animation/anim_channels_edit.c source/blender/editors/animation/keyframes_draw.c source/blender/editors/animation/keyframes_edit.c source/blender/editors/include/ED_anim_api.h source/blender/editors/space_nla/nla_channels.c source/blender/makesrna/intern/CMakeLists.txt source/blender/makesrna/intern/rna_main_api.c source/blender/makesrna/intern/rna_scene.c API changes resolved: source/blender/freestyle/intern/system/PythonInterpreter.h
Diffstat (limited to 'source/blender/freestyle/intern/system')
-rwxr-xr-xsource/blender/freestyle/intern/system/PythonInterpreter.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/freestyle/intern/system/PythonInterpreter.h b/source/blender/freestyle/intern/system/PythonInterpreter.h
index 934755b8231..379e9a0fdef 100755
--- a/source/blender/freestyle/intern/system/PythonInterpreter.h
+++ b/source/blender/freestyle/intern/system/PythonInterpreter.h
@@ -74,12 +74,12 @@ class LIB_SYSTEM_EXPORT PythonInterpreter : public Interpreter
BKE_reports_clear(reports);
char *fn = const_cast<char*>(filename.c_str());
#if 0
- int status = BPY_run_python_script(_context, fn, NULL, reports);
+ int status = BPY_filepath_exec(_context, fn, reports);
#else
int status;
Text *text = add_text(fn, G.main->name);
if (text) {
- status = BPY_run_python_script(_context, NULL, text, reports);
+ status = BPY_text_exec(_context, text, reports);
unlink_text(G.main, text);
free_libblock(&G.main->text, text);
} else {
@@ -110,7 +110,7 @@ class LIB_SYSTEM_EXPORT PythonInterpreter : public Interpreter
BKE_reports_clear(reports);
- if (!BPY_run_python_script(_context, NULL, text, reports)) {
+ if (!BPY_text_exec(_context, text, reports)) {
cout << "\nError executing Python script from PythonInterpreter::interpretText" << endl;
cout << "Name: " << name << endl;
cout << "Errors: " << endl;
@@ -163,7 +163,7 @@ private:
}
}
- BPY_run_python_script(_context, NULL, text, NULL);
+ BPY_text_exec(_context, text, NULL);
// cleaning up
unlink_text(G.main, text);