Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_ops.c
| Show First 20 Lines • Show All 1,046 Lines • ▼ Show 20 Lines | static int reports_to_text_exec(bContext *C, wmOperator *UNUSED(op)) | ||||
| /* convert entire list to a display string, and add this to the text-block | /* convert entire list to a display string, and add this to the text-block | ||||
| * - if commandline debug option enabled, show debug reports too | * - if commandline debug option enabled, show debug reports too | ||||
| * - otherwise, up to info (which is what users normally see) | * - otherwise, up to info (which is what users normally see) | ||||
| */ | */ | ||||
| str = BKE_reports_string(reports, (G.debug & G_DEBUG) ? RPT_DEBUG : RPT_INFO); | str = BKE_reports_string(reports, (G.debug & G_DEBUG) ? RPT_DEBUG : RPT_INFO); | ||||
| if (str) { | if (str) { | ||||
| TextUndoBuf *utxt = NULL; // FIXME | BKE_text_write(txt, str); | ||||
| BKE_text_write(txt, utxt, str); | |||||
| MEM_freeN(str); | MEM_freeN(str); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| else { | else { | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 645 Lines • Show Last 20 Lines | |||||