From db71120f9756fe59a6b05d0ce8e16193e6f77acf Mon Sep 17 00:00:00 2001 From: falken10vdl Date: Fri, 24 Jul 2026 09:41:23 +0200 Subject: [PATCH] Remove unused _get_shader_label helper method (cherry picked from commit e9b619e3fba90cadadd4158b5e8f90809214a67c) --- src/bonsai/bonsai/bim/module/style/ui.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/style/ui.py b/src/bonsai/bonsai/bim/module/style/ui.py index 22ae58b527..d03bcbcd6c 100644 --- a/src/bonsai/bonsai/bim/module/style/ui.py +++ b/src/bonsai/bonsai/bim/module/style/ui.py @@ -225,27 +225,6 @@ class BIM_PT_styles(Panel): op = row3.operator("bim.toggle_prefer_ifc_shading", text="", icon="UV_SYNC_SELECT") op.material_name = material.name - @staticmethod - def _get_shader_label(material: bpy.types.Material, msprops) -> str: - space = tool.Blender.get_view3d_space() - if space and space.shading.type == "SOLID": - return "Not Applicable" - if msprops.active_style_type == "External": - return "External (.blend)" - if not material.node_tree: - return "Flat colour" - nodes = material.node_tree.nodes - has_mix = any(n.type == "MIX_SHADER" for n in nodes) - if has_mix: - return "Emission (Flat)" - has_principled = any(n.type == "BSDF_PRINCIPLED" for n in nodes) - has_teximage = any(n.type == "TEX_IMAGE" and any(o.links for o in n.outputs) for n in nodes) - if has_principled and has_teximage: - return "BSDF + Textures" - if has_principled: - return "Principled BSDF" - return "Flat colour" - def draw_surface_style_shading(self): row = self.layout.row() row.prop(self.props, "surface_colour")