| 403 | |
| 404 | |
| 405 | class ST2BakedPanel(bpy.types.Panel): |
| 406 | bl_label = "Baked" |
| 407 | bl_idname = "ST2_PT_6_BAKEDPANEL" |
| 408 | bl_space_type = "VIEW_3D" |
| 409 | bl_region_type = "UI" |
| 410 | bl_category = "ST2" |
| 411 | |
| 412 | @classmethod |
| 413 | def poll(cls, context): |
| 414 | return bool(search.active_baked_object(context)) |
| 415 | |
| 416 | def draw(self, context): |
| 417 | ks = search.active_baked_objects(context, prefer_parent=True) |
| 418 | |
| 419 | if len(ks) > 1: |
| 420 | self.layout.row().label(text=f"ST2 Baked: {len(ks)} objects") |
| 421 | self.layout.row().operator("st2.bake_select_all", text="Select All") |
| 422 | self.layout.row().operator("st2.delete_bake", text="Delete Bakes") |
| 423 | else: |
| 424 | self.layout.row().label(text=f"ST2 Baked: “{list(ks)[0].st2.text}”") |
| 425 | self.layout.row().operator("st2.bake_select_all", text="Select All") |
| 426 | self.layout.row().operator("st2.delete_bake", text="Delete Bake") |
| 427 | |
| 428 | |
| 429 | classes = [ |
nothing calls this directly
no outgoing calls
no test coverage detected