Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_info.py
| Context not available. | |||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.operator("file.pack_all", text="Pack into .blend file") | layout.prop(bpy.data, "use_autopack") | ||||
| layout.operator("file.unpack_all", text="Unpack into Files") | |||||
| layout.separator() | |||||
| pack_all = layout.row(align=False) | |||||
| pack_all.operator("file.pack_all") | |||||
| pack_all.active=(False if bpy.data.use_autopack else True) | |||||
| unpack_all = layout.row(align=False) | |||||
| unpack_all.operator("file.unpack_all") | |||||
| unpack_all.active=(False if bpy.data.use_autopack else True) | |||||
| layout.separator() | layout.separator() | ||||
| Context not available. | |||||