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

Method draw

ST2/exporting.py:416–426  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

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