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:
authorJoshua Leung <aligorith@gmail.com>2009-04-22 14:07:12 +0400
committerJoshua Leung <aligorith@gmail.com>2009-04-22 14:07:12 +0400
commit643d59bb9bf3bdd46f41a0b8c79384146629f9c8 (patch)
treebfb9c002336f81a454ba9913a0bf7bcd30890112 /source/blender/python/intern/bpy_interface.c
parente4127da1e347afc4b4c34b389d3f1e7ef200821b (diff)
Assorted 2.5 fixes:
- compiling errors in outliner.c - incorrect comments
Diffstat (limited to 'source/blender/python/intern/bpy_interface.c')
-rw-r--r--source/blender/python/intern/bpy_interface.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c
index 86406134253..c2773e9e7d1 100644
--- a/source/blender/python/intern/bpy_interface.c
+++ b/source/blender/python/intern/bpy_interface.c
@@ -560,7 +560,7 @@ float BPY_pydriver_eval (ChannelDriver *driver)
}
}
- /* add target values to a py dictionary that we add to the drivers dict as 'd' */
+ /* add target values to a dict that will be used as '__locals__' dict */
driver_vars = PyDict_New(); // XXX do we need to decref this?
for (dtar= driver->targets.first; dtar; dtar= dtar->next) {
PyObject *driver_arg = NULL;
@@ -569,11 +569,10 @@ float BPY_pydriver_eval (ChannelDriver *driver)
/* try to get variable value */
tval= driver_get_target_value(driver, dtar);
driver_arg= PyFloat_FromDouble((double)tval);
- if (driver_arg == NULL) continue;
/* try to add to dictionary */
if (PyDict_SetItemString(driver_vars, dtar->name, driver_arg)) {
- /* this target failed */
+ /* this target failed - bad name */
if (targets_ok) {
/* first one - print some extra info for easier identification */
fprintf(stderr, "\nBPY_pydriver_eval() - Error while evaluating PyDriver:\n");