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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilém Duha <vilda.novak@gmail.com>2019-07-14 21:52:51 +0300
committerVilém Duha <vilda.novak@gmail.com>2019-07-14 21:53:09 +0300
commit20677f4ae5d7f4b9cbacebd08e4b6460449266f2 (patch)
tree4dd90fdce711c51822663268e3ba07cbb3e0e599
parent44071d47303132d97f3e71d18e818d9b9d188dca (diff)
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.
-rw-r--r--blenderkit/blendfiles/material_thumbnailer_cycles.blendbin551885 -> 546728 bytes
-rw-r--r--blenderkit/utils.py3
2 files changed, 2 insertions, 1 deletions
diff --git a/blenderkit/blendfiles/material_thumbnailer_cycles.blend b/blenderkit/blendfiles/material_thumbnailer_cycles.blend
index 9b7c0b8a..56efcc96 100644
--- a/blenderkit/blendfiles/material_thumbnailer_cycles.blend
+++ b/blenderkit/blendfiles/material_thumbnailer_cycles.blend
Binary files 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()