Fix tests where panel name and tab panel name is identical

For now probably just easier to skip tabs. They are just containers and
not worth testing. Famous last words :)
This commit is contained in:
Dion Moult
2026-02-17 18:16:20 +11:00
parent fcc80ad14a
commit 8023a992da
+2
View File
@@ -280,6 +280,8 @@ def create_ui_name_cache():
try:
panel_type = getattr(bpy.types, bl_idname)
if panel_type.bl_rna.base.name == "Panel":
if "_tab_" in panel_type.bl_idname:
continue # Tab panels are just groups and not relevant in testing
ui_name_cache[panel_type.bl_label] = panel_type.bl_idname
elif panel_type.bl_rna.base.name == "Operator":
ui_name_cache[panel_type.bl_label] = bl_idname