Revision: 29268
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29268
Author: broken
Date: 2010-06-06 10:52:33 +0200 (Sun, 06 Jun 2010)
Log Message:
-----------
Don't report the python code for operators type which don't have the
'REGISTER' flag set.
Modified Paths:
--------------
trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
Modified: trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
2010-06-06 08:51:53 UTC (rev 29267)
+++ trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
2010-06-06 08:52:33 UTC (rev 29268)
@@ -392,11 +392,13 @@
if(retval & OPERATOR_FINISHED) {
if(G.f & G_DEBUG)
wm_operator_print(op); /* todo - this print may double
up, might want to check more flags then the FINISHED */
-
- /* Report the python string representation of the operator */
- buf = WM_operator_pystring(C, op->type, op->ptr, 1);
- BKE_report(CTX_wm_reports(C), RPT_OPERATOR, buf);
- MEM_freeN(buf);
+
+ if (op->type->flag & OPTYPE_REGISTER) {
+ /* Report the python string representation of the
operator */
+ buf = WM_operator_pystring(C, op->type, op->ptr, 1);
+ BKE_report(CTX_wm_reports(C), RPT_OPERATOR, buf);
+ MEM_freeN(buf);
+ }
}
if (op->reports->list.first) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs