Cleanup: suppress debug warning with unregistered Panel sub-classes

This commit is contained in:
Campbell Barton
2024-08-20 14:25:55 +10:00
parent 12549de989
commit ec759b6caf
2 changed files with 7 additions and 7 deletions

View File

@@ -1050,13 +1050,13 @@ class CYCLES_RENDER_PT_passes_crypto(CyclesButtonsPanel, ViewLayerCryptomattePan
bl_parent_id = "CYCLES_RENDER_PT_passes"
class CYCLES_RENDER_PT_passes_aov(CyclesButtonsPanel, ViewLayerAOVPanel):
class CYCLES_RENDER_PT_passes_aov(CyclesButtonsPanel, ViewLayerAOVPanel, Panel):
bl_label = "Shader AOV"
bl_context = "view_layer"
bl_parent_id = "CYCLES_RENDER_PT_passes"
class CYCLES_RENDER_PT_passes_lightgroups(CyclesButtonsPanel, ViewLayerLightgroupsPanel):
class CYCLES_RENDER_PT_passes_lightgroups(CyclesButtonsPanel, ViewLayerLightgroupsPanel, Panel):
bl_label = "Light Groups"
bl_context = "view_layer"
bl_parent_id = "CYCLES_RENDER_PT_passes"

View File

@@ -216,7 +216,7 @@ class VIEWLAYER_PT_eevee_layer_passes_effects(ViewLayerButtonsPanel, Panel):
col.prop(view_layer_eevee, "use_pass_transparent")
class ViewLayerAOVPanel(ViewLayerButtonsPanel, Panel):
class ViewLayerAOVPanel(ViewLayerButtonsPanel):
bl_label = "Shader AOV"
def draw(self, context):
@@ -241,12 +241,12 @@ class ViewLayerAOVPanel(ViewLayerButtonsPanel, Panel):
layout.label(text="Conflicts with another render pass with the same name", icon='ERROR')
class VIEWLAYER_PT_layer_passes_aov(ViewLayerAOVPanel):
class VIEWLAYER_PT_layer_passes_aov(ViewLayerAOVPanel, Panel):
bl_parent_id = "VIEWLAYER_PT_layer_passes"
COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT'}
class ViewLayerCryptomattePanel(ViewLayerButtonsPanel, Panel):
class ViewLayerCryptomattePanel(ViewLayerButtonsPanel):
bl_label = "Cryptomatte"
def draw(self, context):
@@ -288,7 +288,7 @@ class VIEWLAYER_MT_lightgroup_sync(Menu):
layout.operator("scene.view_layer_remove_unused_lightgroups", icon='REMOVE')
class ViewLayerLightgroupsPanel(ViewLayerButtonsPanel, Panel):
class ViewLayerLightgroupsPanel(ViewLayerButtonsPanel):
bl_label = "Light Groups"
def draw(self, context):
@@ -314,7 +314,7 @@ class ViewLayerLightgroupsPanel(ViewLayerButtonsPanel, Panel):
sub.menu("VIEWLAYER_MT_lightgroup_sync", icon='DOWNARROW_HLT', text="")
class VIEWLAYER_PT_layer_passes_lightgroups(ViewLayerLightgroupsPanel):
class VIEWLAYER_PT_layer_passes_lightgroups(ViewLayerLightgroupsPanel, Panel):
bl_parent_id = "VIEWLAYER_PT_layer_passes"
COMPAT_ENGINES = {'CYCLES'}