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:
authorPhilipp Oeser <info@graphics-engineer.com>2020-05-07 12:12:27 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-05-07 12:40:43 +0300
commitb5faa814dc34dfae45f31e9ab8ab44ff8a450071 (patch)
tree12bc898dfb78a6e6ea4a0a308eccd86dbebf42f3
parent96fa47905e0903cd784fb915ab34561b79d3fca9 (diff)
Fix T76485: Export Paper Model: error using (removed) cycles subsurface
pass Since rBe0085bfd24da, Cycles is not using a dedicated subsurface pass anymore, update this Addon accordingly.
-rw-r--r--io_export_paper_model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_export_paper_model.py b/io_export_paper_model.py
index 10658dd6..f44038f1 100644
--- a/io_export_paper_model.py
+++ b/io_export_paper_model.py
@@ -252,7 +252,7 @@ class Unfolder:
# TODO: do we really need all this recollection?
recall = rd.engine, sce.cycles.bake_type, sce.cycles.samples, bk.use_selected_to_active, bk.margin, bk.cage_extrusion, bk.use_cage, bk.use_clear
rd.engine = 'CYCLES'
- recall_pass = {p: getattr(bk, f"use_pass_{p}") for p in ('ambient_occlusion', 'color', 'diffuse', 'direct', 'emit', 'glossy', 'indirect', 'subsurface', 'transmission')}
+ recall_pass = {p: getattr(bk, f"use_pass_{p}") for p in ('ambient_occlusion', 'color', 'diffuse', 'direct', 'emit', 'glossy', 'indirect', 'transmission')}
for p in recall_pass:
setattr(bk, f"use_pass_{p}", (properties.output_type != 'TEXTURE'))
lookup = {'TEXTURE': 'DIFFUSE', 'AMBIENT_OCCLUSION': 'AO', 'RENDER': 'COMBINED', 'SELECTED_TO_ACTIVE': 'COMBINED'}
@@ -266,7 +266,7 @@ class Unfolder:
sce.cycles.samples = properties.bake_samples
if sce.cycles.bake_type == 'COMBINED':
bk.use_pass_direct, bk.use_pass_indirect = True, True
- bk.use_pass_diffuse, bk.use_pass_glossy, bk.use_pass_transmission, bk.use_pass_subsurface, bk.use_pass_ambient_occlusion, bk.use_pass_emit = True, False, False, True, True, True
+ bk.use_pass_diffuse, bk.use_pass_glossy, bk.use_pass_transmission, bk.use_pass_ambient_occlusion, bk.use_pass_emit = True, False, False, True, True
if image_packing == 'PAGE_LINK':
self.mesh.save_image(printable_size * ppm, filepath)