MCPcopy Create free account
hub / github.com/coldtype/st2 / ST2BakedPanel

Class ST2BakedPanel

ST2/exporting.py:405–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403
404
405class 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
429classes = [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected