*Added subdivide to armature toolbar, and gave it a hotkey (W)

*Fixed some remaining icon issue in the shape key properties
This commit is contained in:
William Reynish 2009-11-02 13:20:14 +00:00
parent a87c16947d
commit 9e9ab1a227
3 changed files with 10 additions and 3 deletions

@ -180,7 +180,13 @@ class DATA_PT_shape_keys(DataButtonsPanel):
subrow = sub.row(align=True)
subrow.active = enable_edit_value
if ob.shape_key_lock:
subrow.itemR(ob, "shape_key_lock", icon='ICON_PINNED', text="")
else:
subrow.itemR(ob, "shape_key_lock", icon='ICON_UNPINNED', text="")
if kb.mute:
subrow.itemR(kb, "mute", icon='ICON_MUTE_IPO_ON', text="")
else:
subrow.itemR(kb, "mute", icon='ICON_MUTE_IPO_OFF', text="")
subrow.itemO("object.shape_key_clear", icon='ICON_X', text="")

@ -278,6 +278,7 @@ class VIEW3D_PT_tools_armatureedit(View3DPanel):
col = layout.column(align=True)
col.itemL(text="Modeling:")
col.itemO("armature.extrude_move")
col.itemO("armature.subdivide_multi", text="Subdivide")
col = layout.column(align=True)
col.itemL(text="Grease Pencil:")

@ -209,7 +209,7 @@ void ED_keymap_armature(wmKeyConfig *keyconf)
WM_keymap_add_item(keymap, "ARMATURE_OT_bone_primitive_add", AKEY, KM_PRESS, KM_SHIFT, 0);
/* only the menu-version of subdivide is registered in keymaps for now */
WM_keymap_add_item(keymap, "ARMATURE_OT_subdivs", SKEY, KM_PRESS, KM_ALT, 0);
WM_keymap_add_item(keymap, "ARMATURE_OT_subdivide_multi", WKEY, KM_PRESS, 0, 0);
WM_keymap_add_item(keymap, "ARMATURE_OT_parent_set", PKEY, KM_PRESS, KM_CTRL, 0);
WM_keymap_add_item(keymap, "ARMATURE_OT_parent_clear", PKEY, KM_PRESS, KM_ALT, 0);