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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-05-26 12:57:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-05-26 12:57:28 +0300
commitf2a8b74c2572258391c5847c177e59266aee3dab (patch)
tree0b3d7d1822beb32d335b0689bb04bb0a3a36f98c /intern
parent3b24ece297afc8ee648f91dbbe890d8aaee7e3bc (diff)
parentf78ba0df02a9734740d7ccddbe315020f56852f6 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/addon/engine.py20
-rw-r--r--intern/cycles/blender/addon/properties.py11
-rw-r--r--intern/cycles/blender/blender_sync.cpp2
3 files changed, 21 insertions, 12 deletions
diff --git a/intern/cycles/blender/addon/engine.py b/intern/cycles/blender/addon/engine.py
index 8fb2d08cedd..9e22ce331d0 100644
--- a/intern/cycles/blender/addon/engine.py
+++ b/intern/cycles/blender/addon/engine.py
@@ -243,13 +243,13 @@ def register_passes(engine, scene, srl):
if crl.pass_debug_ray_bounces: engine.register_pass(scene, srl, "Debug Ray Bounces", 1, "X", 'VALUE')
if crl.use_denoising and crl.denoising_store_passes:
- engine.register_pass(scene, srl, "Denoising Normal", 3, "XYZ", 'VECTOR');
- engine.register_pass(scene, srl, "Denoising Normal Variance", 3, "XYZ", 'VECTOR');
- engine.register_pass(scene, srl, "Denoising Albedo", 3, "RGB", 'COLOR');
- engine.register_pass(scene, srl, "Denoising Albedo Variance", 3, "RGB", 'COLOR');
- engine.register_pass(scene, srl, "Denoising Depth", 1, "Z", 'VALUE');
- engine.register_pass(scene, srl, "Denoising Depth Variance", 1, "Z", 'VALUE');
- engine.register_pass(scene, srl, "Denoising Shadow A", 3, "XYV", 'VECTOR');
- engine.register_pass(scene, srl, "Denoising Shadow B", 3, "XYV", 'VECTOR');
- engine.register_pass(scene, srl, "Denoising Image", 3, "RGB", 'COLOR');
- engine.register_pass(scene, srl, "Denoising Image Variance", 3, "RGB", 'COLOR'); \ No newline at end of file
+ engine.register_pass(scene, srl, "Denoising Normal", 3, "XYZ", 'VECTOR')
+ engine.register_pass(scene, srl, "Denoising Normal Variance", 3, "XYZ", 'VECTOR')
+ engine.register_pass(scene, srl, "Denoising Albedo", 3, "RGB", 'COLOR')
+ engine.register_pass(scene, srl, "Denoising Albedo Variance", 3, "RGB", 'COLOR')
+ engine.register_pass(scene, srl, "Denoising Depth", 1, "Z", 'VALUE')
+ engine.register_pass(scene, srl, "Denoising Depth Variance", 1, "Z", 'VALUE')
+ engine.register_pass(scene, srl, "Denoising Shadow A", 3, "XYV", 'VECTOR')
+ engine.register_pass(scene, srl, "Denoising Shadow B", 3, "XYV", 'VECTOR')
+ engine.register_pass(scene, srl, "Denoising Image", 3, "RGB", 'COLOR')
+ engine.register_pass(scene, srl, "Denoising Image Variance", 3, "RGB", 'COLOR')
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py
index 1fc6f711cc4..28d60671bd8 100644
--- a/intern/cycles/blender/addon/properties.py
+++ b/intern/cycles/blender/addon/properties.py
@@ -1160,6 +1160,12 @@ class CyclesCurveRenderSettings(bpy.types.PropertyGroup):
def unregister(cls):
del bpy.types.Scene.cycles_curves
+def update_render_passes(self, context):
+ scene = context.scene
+ rd = scene.render
+ rl = rd.layers.active
+ rl.update_render_passes()
+
class CyclesRenderLayerSettings(bpy.types.PropertyGroup):
@classmethod
def register(cls):
@@ -1172,21 +1178,25 @@ class CyclesRenderLayerSettings(bpy.types.PropertyGroup):
name="Debug BVH Traversed Nodes",
description="Store Debug BVH Traversed Nodes pass",
default=False,
+ update=update_render_passes,
)
cls.pass_debug_bvh_traversed_instances = BoolProperty(
name="Debug BVH Traversed Instances",
description="Store Debug BVH Traversed Instances pass",
default=False,
+ update=update_render_passes,
)
cls.pass_debug_bvh_intersections = BoolProperty(
name="Debug BVH Intersections",
description="Store Debug BVH Intersections",
default=False,
+ update=update_render_passes,
)
cls.pass_debug_ray_bounces = BoolProperty(
name="Debug Ray Bounces",
description="Store Debug Ray Bounces pass",
default=False,
+ update=update_render_passes,
)
cls.use_denoising = BoolProperty(
@@ -1261,6 +1271,7 @@ class CyclesRenderLayerSettings(bpy.types.PropertyGroup):
name="Store denoising passes",
description="Store the denoising feature passes and the noisy image",
default=False,
+ update=update_render_passes,
)
@classmethod
diff --git a/intern/cycles/blender/blender_sync.cpp b/intern/cycles/blender/blender_sync.cpp
index 138ea4dfad2..1604b0039eb 100644
--- a/intern/cycles/blender/blender_sync.cpp
+++ b/intern/cycles/blender/blender_sync.cpp
@@ -585,8 +585,6 @@ array<Pass> BlenderSync::sync_render_passes(BL::RenderLayer& b_rlay,
b_engine.add_pass("Debug Ray Bounces", 1, "X", b_srlay.name().c_str());
Pass::add(PASS_RAY_BOUNCES, passes);
}
-#else
- (void) b_srlay; /* Ignored. */
#endif
return passes;