diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2019-07-14 21:52:51 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2019-07-14 21:53:09 +0300 |
commit | 20677f4ae5d7f4b9cbacebd08e4b6460449266f2 (patch) | |
tree | 4dd90fdce711c51822663268e3ba07cbb3e0e599 | |
parent | 44071d47303132d97f3e71d18e818d9b9d188dca (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.blend | bin | 551885 -> 546728 bytes | |||
-rw-r--r-- | blenderkit/utils.py | 3 |
2 files changed, 2 insertions, 1 deletions
diff --git a/blenderkit/blendfiles/material_thumbnailer_cycles.blend b/blenderkit/blendfiles/material_thumbnailer_cycles.blend Binary files differindex 9b7c0b8a..56efcc96 100644 --- a/blenderkit/blendfiles/material_thumbnailer_cycles.blend +++ b/blenderkit/blendfiles/material_thumbnailer_cycles.blend 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() |