Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-10-23 20:26:35 +0300
committerHoward Trickey <howard.trickey@gmail.com>2020-10-24 21:07:05 +0300
commite856443c99d5175b3de6370590142a8d03054bb3 (patch)
tree102ce394831601cc9ffb53fc9f4ad9d4ff91f3eb /intern/clog/clog.c
parentb37c40a575663ea42d397d57d3ef902b4d9777ec (diff)
CLOG: Add getter to know if output supports coloring
Diffstat (limited to 'intern/clog/clog.c')
-rw-r--r--intern/clog/clog.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/intern/clog/clog.c b/intern/clog/clog.c
index 37c8393f532..2bc3985c71f 100644
--- a/intern/clog/clog.c
+++ b/intern/clog/clog.c
@@ -755,4 +755,12 @@ void CLG_logref_init(CLG_LogRef *clg_ref)
#endif
}
+int CLG_color_support_get(CLG_LogRef *clg_ref)
+{
+ if (clg_ref->type == NULL) {
+ CLG_logref_init(clg_ref);
+ }
+ return clg_ref->type->ctx->use_color;
+}
+
/** \} */