Pkey toggle sketching panel

(it used to do select parent, but that's already done with [ and ] for children, no need for a second key).
This commit is contained in:
Martin Poirier
2008-11-14 17:33:15 +00:00
parent 6eda50f8d9
commit d2023e070c
2 changed files with 6 additions and 6 deletions

View File

@@ -209,7 +209,6 @@ int BIF_currentTemplate()
if (TEMPLATES_CURRENT == 0 && G.scene->toolsettings->skgen_template != NULL)
{
GHashIterator ghi;
int index = 0;
BLI_ghashIterator_init(&ghi, TEMPLATES_HASH);
while (!BLI_ghashIterator_isDone(&ghi))
@@ -217,11 +216,9 @@ int BIF_currentTemplate()
Object *ob = BLI_ghashIterator_getValue(&ghi);
int key = (int)BLI_ghashIterator_getKey(&ghi);
index++;
if (ob == G.scene->toolsettings->skgen_template)
{
TEMPLATES_CURRENT = index;
TEMPLATES_CURRENT = key;
break;
}

View File

@@ -2516,8 +2516,11 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
else if(G.qual==LR_ALTKEY && G.obedit->type==OB_ARMATURE)
clear_bone_parent();
else if((G.qual==0) && (G.obedit->type==OB_ARMATURE))
armature_select_hierarchy(BONE_SELECT_PARENT, 1); // 1 = add to selection
else if((G.qual==0) && (G.obedit->type==OB_ARMATURE))
{
toggle_blockhandler(curarea, VIEW3D_HANDLER_BONESKETCH, UI_PNL_TO_MOUSE);
allqueue(REDRAWVIEW3D, 0);
}
else if((G.qual==(LR_CTRLKEY|LR_ALTKEY)) && (G.obedit->type==OB_ARMATURE))
separate_armature();
else if((G.qual==0) && G.obedit->type==OB_MESH)