diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-29 12:59:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-29 13:01:10 +0300 |
commit | 778542fd8fe80f87286d36bb4005314a8343e038 (patch) | |
tree | 272d34c618e9cc07b0bac3fc87b6801e3908daa4 /source/blender/python/intern/bpy_driver.c | |
parent | c7f67d60fbe24df942bcde49aadf480ac6622e71 (diff) |
Cleanup: comments (long lines) in python
Diffstat (limited to 'source/blender/python/intern/bpy_driver.c')
-rw-r--r-- | source/blender/python/intern/bpy_driver.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/source/blender/python/intern/bpy_driver.c b/source/blender/python/intern/bpy_driver.c index 3457e614708..726599ff06e 100644 --- a/source/blender/python/intern/bpy_driver.c +++ b/source/blender/python/intern/bpy_driver.c @@ -54,7 +54,10 @@ extern void BPY_update_rna_module(void); # include <opcode.h> #endif -/* for pydrivers (drivers using one-line Python expressions to express relationships between targets) */ +/** + * For PyDrivers + * (drivers using one-line Python expressions to express relationships between targets). + */ PyObject *bpy_pydriver_Dict = NULL; #ifdef USE_BYTECODE_WHITELIST @@ -399,8 +402,10 @@ float BPY_driver_exec(struct PathResolvedRNA *anim_rna, { PyObject *driver_vars = NULL; PyObject *retval = NULL; - PyObject * - expr_vars; /* speed up by pre-hashing string & avoids re-converting unicode strings for every execution */ + + /* Speed up by pre-hashing string & avoids re-converting unicode strings for every execution. */ + PyObject *expr_vars; + PyObject *expr_code; PyGILState_STATE gilstate; bool use_gil; @@ -475,8 +480,9 @@ float BPY_driver_exec(struct PathResolvedRNA *anim_rna, PyTuple_SET_ITEM(((PyObject *)driver_orig->expr_comp), 0, expr_code); driver_orig->flag &= ~DRIVER_FLAG_RECOMPILE; - driver_orig->flag |= - DRIVER_FLAG_RENAMEVAR; /* maybe this can be removed but for now best keep until were sure */ + + /* Maybe this can be removed but for now best keep until were sure. */ + driver_orig->flag |= DRIVER_FLAG_RENAMEVAR; #ifdef USE_BYTECODE_WHITELIST is_recompile = true; #endif |