mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 00:07:53 +00:00
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:
@@ -280,6 +280,8 @@ def create_ui_name_cache():
|
|||||||
try:
|
try:
|
||||||
panel_type = getattr(bpy.types, bl_idname)
|
panel_type = getattr(bpy.types, bl_idname)
|
||||||
if panel_type.bl_rna.base.name == "Panel":
|
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
|
ui_name_cache[panel_type.bl_label] = panel_type.bl_idname
|
||||||
elif panel_type.bl_rna.base.name == "Operator":
|
elif panel_type.bl_rna.base.name == "Operator":
|
||||||
ui_name_cache[panel_type.bl_label] = bl_idname
|
ui_name_cache[panel_type.bl_label] = bl_idname
|
||||||
|
|||||||
Reference in New Issue
Block a user