diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-16 04:19:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-16 07:18:02 +0300 |
commit | 81178eca7cd85b3f07a3c78ff6618639eaf4c562 (patch) | |
tree | 9eba5cb0df19477fcc24916164330704d1645263 /intern/cycles/blender/addon/properties.py | |
parent | e125305af41a7360c52b9a38024b7e24fde06d70 (diff) |
Revert removal of lambda usage for Python RNA callbacks
This reverts commits
- 476be3746e85b4891189c8d480501905b9400c66
- 8d50a3e19e025ef470132e7edadd7b180db833f5
- 08dbc4f996e4e95f3ab64f7bb3e1193700c585f5 (partially).
Diffstat (limited to 'intern/cycles/blender/addon/properties.py')
-rw-r--r-- | intern/cycles/blender/addon/properties.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py index 91bc1cb84a4..dc4437bdc52 100644 --- a/intern/cycles/blender/addon/properties.py +++ b/intern/cycles/blender/addon/properties.py @@ -226,9 +226,6 @@ def update_render_passes(self, context): view_layer = context.view_layer view_layer.update_render_passes() -def poll_object_is_camera(self, obj): - return obj.type == 'CAMERA' - class CyclesRenderSettings(bpy.types.PropertyGroup): @@ -541,7 +538,7 @@ class CyclesRenderSettings(bpy.types.PropertyGroup): description="Camera to use as reference point when subdividing geometry, useful to avoid crawling " "artifacts in animations when the scene camera is moving", type=bpy.types.Object, - poll=poll_object_is_camera, + poll=lambda self, obj: obj.type == 'CAMERA', ) offscreen_dicing_scale: FloatProperty( name="Offscreen Dicing Scale", |