Bugfix #25957
authorTon Roosendaal <ton@blender.org>
Tue, 8 Feb 2011 13:48:06 +0000 (13:48 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 8 Feb 2011 13:48:06 +0000 (13:48 +0000)
RMB click in InfoWindow "console log" was missing call to set subwindow,
needed because it uses opengl picking to find active lines.
Result was that entire UI was glCleared, for some buffer swap methods.

source/blender/editors/space_info/info_report.c

index 46c4c8c..ce0bc68 100644 (file)
@@ -128,6 +128,9 @@ static int select_report_pick_invoke(bContext *C, wmOperator *op, wmEvent *event
        ReportList *reports= CTX_wm_reports(C);
        Report *report;
 
+       /* uses opengl */
+       wmSubWindowSet(CTX_wm_window(C), ar->swinid);
+       
        report= info_text_pick(sinfo, ar, reports, event->mval[1]);
 
        RNA_int_set(op->ptr, "report_index", BLI_findindex(&reports->list, report));