- fix: SHIFT+CTRL+P didn't work (make parent without inverse)

- added: when start blender in debug mode (blender -b) it prints the depth
  of framebuffer.
This commit is contained in:
2003-12-09 17:46:40 +00:00
parent f27578eda2
commit ed30332365
2 changed files with 4 additions and 2 deletions

View File

@@ -107,6 +107,8 @@ void mywindow_init_mainwin(Window *win, int orx, int ory, int sizex, int sizey)
glGetIntegerv(GL_BLUE_BITS, &b);
mainwin_color_depth= r + g + b;
if(G.f & G_DEBUG) printf("Color depth R=%d G=%d B=%d\n", (int)r, (int)g, (int)b);
}
/* XXXXXXXXXXXXXXXX very hacky, not allowed to release

View File

@@ -1205,14 +1205,14 @@ void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
case PKEY:
if(G.obedit) {
if(G.qual==LR_CTRLKEY)
if(G.qual==LR_CTRLKEY || G.qual==(LR_SHIFTKEY|LR_CTRLKEY))
make_parent();
else if((G.qual==0) && G.obedit->type==OB_MESH)
separatemenu();
else if ((G.qual==0) && ELEM(G.obedit->type, OB_CURVE, OB_SURF))
separate_nurb();
}
else if(G.qual==LR_CTRLKEY)
else if(G.qual==LR_CTRLKEY || G.qual==(LR_SHIFTKEY|LR_CTRLKEY))
make_parent();
else if(G.qual==LR_ALTKEY)
clear_parent();