Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/properties.py
| Show First 20 Lines • Show All 1,142 Lines • ▼ Show 20 Lines | class CyclesCurveRenderSettings(bpy.types.PropertyGroup): | ||||
| @classmethod | @classmethod | ||||
| def unregister(cls): | def unregister(cls): | ||||
| del bpy.types.Scene.cycles_curves | del bpy.types.Scene.cycles_curves | ||||
| def update_render_passes(self, context): | def update_render_passes(self, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| rd = scene.render | rd = scene.render | ||||
| rl = scene.render_layers.active | view_layer = scene.view_layers.active | ||||
| rl.update_render_passes() | view_layer.update_render_passes() | ||||
| class CyclesRenderLayerSettings(bpy.types.PropertyGroup): | class CyclesRenderLayerSettings(bpy.types.PropertyGroup): | ||||
| @classmethod | @classmethod | ||||
| def register(cls): | def register(cls): | ||||
| bpy.types.SceneLayer.cycles = PointerProperty( | bpy.types.ViewLayer.cycles = PointerProperty( | ||||
| name="Cycles SceneRenderLayer Settings", | name="Cycles ViewLayer Settings", | ||||
| description="Cycles SceneLayer Settings", | description="Cycles ViewLayer Settings", | ||||
| type=cls, | type=cls, | ||||
| ) | ) | ||||
| cls.pass_debug_bvh_traversed_nodes = BoolProperty( | cls.pass_debug_bvh_traversed_nodes = BoolProperty( | ||||
| name="Debug BVH Traversed Nodes", | name="Debug BVH Traversed Nodes", | ||||
| description="Store Debug BVH Traversed Nodes pass", | description="Store Debug BVH Traversed Nodes pass", | ||||
| default=False, | default=False, | ||||
| update=update_render_passes, | update=update_render_passes, | ||||
| ) | ) | ||||
| ▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | def register(cls): | ||||
| name="Store denoising passes", | name="Store denoising passes", | ||||
| description="Store the denoising feature passes and the noisy image", | description="Store the denoising feature passes and the noisy image", | ||||
| default=False, | default=False, | ||||
| update=update_render_passes, | update=update_render_passes, | ||||
| ) | ) | ||||
| @classmethod | @classmethod | ||||
| def unregister(cls): | def unregister(cls): | ||||
| del bpy.types.SceneLayer.cycles | del bpy.types.ViewLayer.cycles | ||||
| class CyclesCurveSettings(bpy.types.PropertyGroup): | class CyclesCurveSettings(bpy.types.PropertyGroup): | ||||
| @classmethod | @classmethod | ||||
| def register(cls): | def register(cls): | ||||
| bpy.types.ParticleSettings.cycles = PointerProperty( | bpy.types.ParticleSettings.cycles = PointerProperty( | ||||
| name="Cycles Hair Settings", | name="Cycles Hair Settings", | ||||
| description="Cycles hair settings", | description="Cycles hair settings", | ||||
| ▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines | |||||