diff options
author | Lukas Stockner <lukas.stockner@freenet.de> | 2017-05-26 03:13:21 +0300 |
---|---|---|
committer | Lukas Stockner <lukas.stockner@freenet.de> | 2017-05-26 03:13:21 +0300 |
commit | 3722ed13cd99b08caa1fe6bbf247993f98be9f35 (patch) | |
tree | b8df5f083fab135f90d02ff570f7efac51f69924 /intern | |
parent | 2bc008e8a90b5fc038d03de557174ae6a605cb8a (diff) |
Cycles: Update compositor when debug or denoising passes are changed
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/blender/addon/properties.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py index 51b53a43d0b..8bb25aba13c 100644 --- a/intern/cycles/blender/addon/properties.py +++ b/intern/cycles/blender/addon/properties.py @@ -1166,6 +1166,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): @@ -1178,21 +1184,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( @@ -1267,6 +1277,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 |