diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-03-24 00:37:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-03-24 00:37:02 +0300 |
commit | 377f06082a2ce127e658b94396d37c9c308450fd (patch) | |
tree | 138bc989557030a5f00c5fb670bfac340c30f96c /source/blender/windowmanager/intern/wm.c | |
parent | 6956f6c1c5616b6268029f2b24926125421dcc92 (diff) |
enable compiling without python again
Diffstat (limited to 'source/blender/windowmanager/intern/wm.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c index f0c8a1cb978..457f898a39e 100644 --- a/source/blender/windowmanager/intern/wm.c +++ b/source/blender/windowmanager/intern/wm.c @@ -64,11 +64,14 @@ void WM_operator_free(wmOperator *op) { + +#ifndef DISABLE_PYTHON if(op->py_instance) { /* do this first incase there are any __del__ functions or * similar that use properties */ BPY_DECREF(op->py_instance); } +#endif if(op->ptr) { op->properties= op->ptr->data; |