col.itemL(text="Offset:")
col.itemR(bone, "cyclic_offset")
+
class BONE_PT_properties(BoneButtonsPanel):
bl_label = "Properties"
bl_default_closed = True
item = "active_pchan"
else:
item = "active_bone"
-
+
rna_prop_ui.draw(self.layout, context, item)
bpy.types.register(BONE_PT_context_bone)
class DATA_PT_paragraph(DataButtonsPanel):
bl_label = "Paragraph"
+
def poll(self, context):
return (context.object and context.object.type == 'TEXT' and context.curve)
def execute(self, context):
sc = context.space_data
- module = __import__("console_" + sc.language)
+ module = __import__("console_" + sc.language)
execute = getattr(module, "execute", None)
if execute:
bpy.ops.add(HELP_OT_user_community)
bpy.ops.add(HELP_OT_report_bug)
bpy.ops.add(HELP_OT_operator_cheat_sheet)
-
if userpref.active_section == 'INPUT':
layout.operator_context = 'INVOKE_DEFAULT'
- layout.itemO("wm.keyconfig_export", "Export Key Configuration...")
+ layout.item_stringO("wm.keyconfig_export", "path", "keymap.py", "Export Key Configuration...")
class USERPREF_MT_view(bpy.types.Menu):