Cleanup: remove BLENDER_EEVEE checks

Since the engine has been removed there is no need to check for it.
This commit is contained in:
Campbell Barton
2024-10-30 13:20:00 +11:00
parent e10b0b3449
commit f81dcbb67e
5 changed files with 4 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ def cycles_shader_nodes_poll(context):
def eevee_shader_nodes_poll(context):
return context.engine in {'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT'}
return context.engine == 'BLENDER_EEVEE_NEXT'
def object_cycles_shader_nodes_poll(context):

View File

@@ -134,7 +134,7 @@ class DATA_PT_lens(CameraButtonsPanel, Panel):
sub = col.column(align=True)
sub.prop(cam, "central_cylindrical_radius", text="Cylinder radius")
elif engine in {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'}:
elif engine in {'BLENDER_RENDER', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'}:
if cam.lens_unit == 'MILLIMETERS':
col.prop(cam, "lens")
elif cam.lens_unit == 'FOV':

View File

@@ -193,9 +193,6 @@ class ViewLayerCryptomattePanelHelper(ViewLayerButtonsPanel):
))
col.prop(view_layer, "pass_cryptomatte_depth", text="Levels")
if context.engine == 'BLENDER_EEVEE':
col.prop(view_layer, "use_pass_cryptomatte_accurate", text="Accurate Mode")
class VIEWLAYER_PT_layer_passes_cryptomatte(ViewLayerCryptomattePanelHelper, Panel):
bl_parent_id = "VIEWLAYER_PT_layer_passes"

View File

@@ -63,8 +63,7 @@ class NODE_HT_header(Header):
NODE_MT_editor_menus.draw_collapsible(context, layout)
# No shader nodes for EEVEE lights.
if snode_id and not (context.engine == 'BLENDER_EEVEE' and ob_type == 'LIGHT'):
if snode_id:
row = layout.row()
row.prop(snode_id, "use_nodes")

View File

@@ -6430,7 +6430,7 @@ class VIEW3D_PT_shading_lighting(Panel):
return True
if shading.type == 'RENDERED':
engine = context.scene.render.engine
if engine in {'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT'}:
if engine == 'BLENDER_EEVEE_NEXT':
return True
return False