[Bf-blender-cvs] [aca29bcc65d] blender2.8: Immediate Mode: Fix text color for Info and Console editors

Dalai Felinto noreply at git.blender.org
Thu Mar 9 19:21:20 CET 2017


Commit: aca29bcc65d193ba38c50f375c6b390910220b9d
Author: Dalai Felinto
Date:   Thu Mar 9 19:20:31 2017 +0100
Branches: blender2.8
https://developer.blender.org/rBaca29bcc65d193ba38c50f375c6b390910220b9d

Immediate Mode: Fix text color for Info and Console editors

Bug introduced in rB4b365064cfbd

===================================================================

M	source/blender/editors/space_info/textview.c

===================================================================

diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c
index 8ee488ac591..bc9d7365e4e 100644
--- a/source/blender/editors/space_info/textview.c
+++ b/source/blender/editors/space_info/textview.c
@@ -251,6 +251,7 @@ static int console_draw_string(ConsoleDrawContext *cdc, const char *str, int str
 			immUnbindProgram();
 		}
 
+		BLF_color3ubv(cdc->font_id, fg);
 		BLF_position(cdc->font_id, cdc->xy[0], cdc->lofs + cdc->xy[1], 0);
 		BLF_draw_mono(cdc->font_id, str, str_len, cdc->cwidth);




More information about the Bf-blender-cvs mailing list