From 62f795353e1bbc1e839d854c76646a1c234fdd8b Mon Sep 17 00:00:00 2001 From: Simon Wendsche Date: Thu, 16 Jul 2020 15:27:24 +0200 Subject: [PATCH] fix backend always reported as "OpenCL" when compiling render kernels for final render --- export/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/export/__init__.py b/export/__init__.py index 5e6ef780..4690f4b1 100644 --- a/export/__init__.py +++ b/export/__init__.py @@ -200,7 +200,8 @@ def create_session(self, depsgraph, context=None, engine=None, view_layer=None): renderengine_type = config_props.Get("renderengine.type").GetString() if renderengine_type.endswith("OCL") and not renderconfig.HasCachedKernels(): if engine: - message = "Compiling OpenCL kernels (just once, takes a few minutes)" + gpu_backend = utils.get_addon_preferences(bpy.context).gpu_backend + message = f"Compiling {gpu_backend} kernels (just once, takes a few minutes)" engine.report({"INFO"}, message) engine.update_stats(message, "")