Fix T86332: setting Cycles dicing camera fails after recent changes
Somehow "from __future__ import annotations" and "lambda" are not working together well here, work around it by not using a lambda function.
This commit is contained in:
parent
b01e9ad4f0
commit
476be3746e
|
@ -226,6 +226,9 @@ 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):
|
||||
|
||||
|
@ -538,7 +541,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=lambda self, obj: obj.type == 'CAMERA',
|
||||
poll=poll_object_is_camera,
|
||||
)
|
||||
offscreen_dicing_scale: FloatProperty(
|
||||
name="Offscreen Dicing Scale",
|
||||
|
|
Loading…
Reference in New Issue