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:
Diffstat (limited to 'blenderkit/autothumb_material_bg.py')
-rw-r--r--blenderkit/autothumb_material_bg.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/blenderkit/autothumb_material_bg.py b/blenderkit/autothumb_material_bg.py
index 16308433..e54500fc 100644
--- a/blenderkit/autothumb_material_bg.py
+++ b/blenderkit/autothumb_material_bg.py
@@ -88,8 +88,8 @@ if __name__ == "__main__":
else:
ob.cycles.use_adaptive_subdivision = False
ts = data['texture_size_meters']
- # if data["thumbnail_type"] in ['BALL', 'CUBE']:
- # utils.automap(ob.name, tex_size = ts / tscale, bg_exception=True)
+ if data["thumbnail_type"] in ['BALL', 'CUBE', 'CLOTH']:
+ utils.automap(ob.name, tex_size = ts / tscale, just_scale = True, bg_exception=True)
bpy.context.view_layer.update()
s.cycles.volume_step_size = tscale * .1
@@ -115,6 +115,9 @@ if __name__ == "__main__":
img.filepath = ipath
img.reload()
+ bpy.context.scene.render.resolution_x = int(data['thumbnail_resolution'])
+ bpy.context.scene.render.resolution_y = int(data['thumbnail_resolution'])
+
bpy.context.scene.render.filepath = BLENDERKIT_THUMBNAIL_PATH
bg_blender.progress('rendering thumbnail')
render_thumbnails()