Skip to content

Commit

Permalink
fix backend always reported as "OpenCL" when compiling render kernels…
Browse files Browse the repository at this point in the history
… for final render
  • Loading branch information
Theverat committed Jul 16, 2020
1 parent 13e573a commit 62f7953
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion export/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, "")

Expand Down

0 comments on commit 62f7953

Please sign in to comment.