[Bf-extensions-cvs] [b5faa814] blender-v2.83-release: Fix T76485: Export Paper Model: error using (removed) cycles subsurface pass
Philipp Oeser
noreply at git.blender.org
Thu May 7 11:45:50 CEST 2020
Commit: b5faa814dc34dfae45f31e9ab8ab44ff8a450071
Author: Philipp Oeser
Date: Thu May 7 11:12:27 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rBAb5faa814dc34dfae45f31e9ab8ab44ff8a450071
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.
===================================================================
M io_export_paper_model.py
===================================================================
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)
More information about the Bf-extensions-cvs
mailing list