Commit: 4551f03846e0a9cca0a168c5d84cbf41ff312976
Author: Mateusz Grzeliński
Date: Fri Aug 14 21:14:27 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rB4551f03846e0a9cca0a168c5d84cbf41ff312976
Clog: Skip not visible logs
===================================================================
M source/blender/editors/space_info/info_draw_clog.c
===================================================================
diff --git a/source/blender/editors/space_info/info_draw_clog.c
b/source/blender/editors/space_info/info_draw_clog.c
index 058432cd6b2..e6d14ea9119 100644
--- a/source/blender/editors/space_info/info_draw_clog.c
+++ b/source/blender/editors/space_info/info_draw_clog.c
@@ -161,10 +161,11 @@ void clog_textview_end(struct TextViewContext
*UNUSED(tvc))
int clog_textview_step(struct TextViewContext *tvc)
{
- const CLG_LogRecord *record = tvc->iter;
- tvc->iter = record->prev;
- // TODO (grzelins) implement skip not visible
- return (tvc->iter != NULL);
+ tvc->iter = (void *)((Link *)tvc->iter)->prev;
+ if (tvc->iter && clog_textview_skip__internal(tvc)) {
+ return true;
+ }
+ return false;
}
char *clog_record_sprintfN(const struct CLG_LogRecord *record, const SpaceInfo
*sinfo)
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs