move operator reports into a global list so they display in the console.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 1 Apr 2010 13:54:53 +0000 (13:54 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 1 Apr 2010 13:54:53 +0000 (13:54 +0000)
source/blender/windowmanager/intern/wm_event_system.c

index 6aea2c0c096644a4b0780eb96ff0f93d42268d17..da1f71f49da9b8183d54ee8645308e82d70868e1 100644 (file)
@@ -378,6 +378,9 @@ static void wm_operator_finished(bContext *C, wmOperator *op, int repeat)
 
        op->customdata= NULL;
 
+       /* add reports to the global list, otherwise they are not seen */
+       addlisttolist(&CTX_wm_reports(C)->list, &op->reports->list);
+
        /* we don't want to do undo pushes for operators that are being
           called from operators that already do an undo push. usually
           this will happen for python operators that call C operators */