[Bf-extensions-cvs] [20677f4a] master: BlenderKit: fix thumbnailer generated coordinates The object's coordinates were still off thanks to an unfixed cycles bug(T64739), so I avoided bevel modifier in the box thumbnail object for the cost of a few loops on the mesh.
Vilém Duha
noreply at git.blender.org
Sun Jul 14 21:00:57 CEST 2019
Commit: 20677f4ae5d7f4b9cbacebd08e4b6460449266f2
Author: Vilém Duha
Date: Sun Jul 14 20:52:51 2019 +0200
Branches: master
https://developer.blender.org/rBA20677f4ae5d7f4b9cbacebd08e4b6460449266f2
BlenderKit: fix thumbnailer generated coordinates
The object's coordinates were still off thanks to an unfixed cycles bug(T64739), so I avoided bevel modifier in the box thumbnail object for the cost of a few loops on the mesh.
===================================================================
M blenderkit/blendfiles/material_thumbnailer_cycles.blend
M blenderkit/utils.py
===================================================================
diff --git a/blenderkit/blendfiles/material_thumbnailer_cycles.blend b/blenderkit/blendfiles/material_thumbnailer_cycles.blend
index 9b7c0b8a..56efcc96 100644
Binary files a/blenderkit/blendfiles/material_thumbnailer_cycles.blend and b/blenderkit/blendfiles/material_thumbnailer_cycles.blend differ
diff --git a/blenderkit/utils.py b/blenderkit/utils.py
index 81c49803..cb18ec7d 100644
--- a/blenderkit/utils.py
+++ b/blenderkit/utils.py
@@ -426,7 +426,8 @@ def automap(target_object=None, target_slot=None, tex_size=1, bg_exception=False
if tob.data.use_auto_texspace:
tob.data.use_auto_texspace = False
- tob.data.texspace_size = (1, 1, 1)
+ if not just_scale:
+ tob.data.texspace_size = (1, 1, 1)
if 'automap' not in tob.data.uv_layers:
bpy.ops.mesh.uv_texture_add()
More information about the Bf-extensions-cvs
mailing list