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:
authorCampbell Barton <ideasman42@gmail.com>2008-12-27 19:35:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-12-27 19:35:15 +0300
commitb7c7057f3e876cd0f964e2badc43e0b9a5e25d3b (patch)
tree1a311f3c23eb5a607bfe033c9f2cbab6955ce8a2 /source/blender/windowmanager
parentf0f451fc16880315c8c094aaabd0fbf8a06ffede (diff)
* converting operator props to strings was using a float as in int.
* PyOperators were always calling the python functions with default args. * Made operator prints only happen when G.f & G_DEBUG is enabled.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_event_system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c
index ec22bbd365c..b0abdc3b7f2 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -331,8 +331,8 @@ static int wm_operator_invoke(bContext *C, wmOperatorType *ot, wmEvent *event, I
else
printf("invalid operator call %s\n", ot->idname); /* debug, important to leave a while, should never happen */
- /* only for testing, can remove any time */
- WM_operator_print(op);
+ if(G.f & G_DEBUG)
+ WM_operator_print(op);
if((retval & OPERATOR_FINISHED) && (ot->flag & OPTYPE_REGISTER)) {
wm_operator_register(wm, op);