[Bf-extensions-cvs] [4279ab28] master: BlenderKit: automap activates it's own UV channel also for Cycles.

Vilem Duha noreply at git.blender.org
Sat Jun 1 18:57:22 CEST 2019


Commit: 4279ab28df5cd2207c18abccc1b1b48d58435e30
Author: Vilem Duha
Date:   Sat Jun 1 18:27:45 2019 +0200
Branches: master
https://developer.blender.org/rBA4279ab28df5cd2207c18abccc1b1b48d58435e30

BlenderKit: automap activates it's own UV channel also for Cycles.

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

M	blenderkit/utils.py

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

diff --git a/blenderkit/utils.py b/blenderkit/utils.py
index 0cda06fb..2b13533f 100644
--- a/blenderkit/utils.py
+++ b/blenderkit/utils.py
@@ -437,6 +437,5 @@ def automap(target_object=None, target_slot=None, tex_size=1, bg_exception=False
                 correct_aspect=False)  # it's 2.0 because blender can't tell size of a cube :)
             bpy.ops.object.editmode_toggle()
             tob.data.uv_layers.active = tob.data.uv_layers['automap']
-            # tob.data.uv_textures["automap"].active_render = True
-
+            tob.data.uv_layers["automap"].active_render = True
             bpy.context.view_layer.objects.active = actob



More information about the Bf-extensions-cvs mailing list