diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-01-01 19:14:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-01-01 19:14:08 +0300 |
commit | 9db2035e3650ecbd1baf1943c490d6a4e140f2c3 (patch) | |
tree | 2b796bec9d7c17ea18a0efea3011436a25e2d470 /source/blender/src/editscreen.c | |
parent | 65f1999435224c14ddbe232535dacd52b1ae465a (diff) |
while trying to debug memory leaks, extended MEM_printmemlist to print a python dict and some lines at the end to format it in a useful way when run as a python script.
Diffstat (limited to 'source/blender/src/editscreen.c')
-rw-r--r-- | source/blender/src/editscreen.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c index 35c0692510d..43d163bff09 100644 --- a/source/blender/src/editscreen.c +++ b/source/blender/src/editscreen.c @@ -1397,9 +1397,14 @@ void screenmain(void) towin= 0; } else if (event==QKEY) { - if((G.obedit && G.obedit->type==OB_FONT && g_activearea->spacetype==SPACE_VIEW3D)||g_activearea->spacetype==SPACE_TEXT||g_activearea->spacetype==SPACE_SCRIPT); + /* Temp place to print mem debugging info ctrl+alt+shift + qkey */ + if ( G.qual == (LR_SHIFTKEY | LR_ALTKEY | LR_CTRLKEY) ) { + MEM_printmemlist(); + } + + else if((G.obedit && G.obedit->type==OB_FONT && g_activearea->spacetype==SPACE_VIEW3D)||g_activearea->spacetype==SPACE_TEXT||g_activearea->spacetype==SPACE_SCRIPT); else { - if(val && (G.qual & LR_CTRLKEY)) { + if(val && (G.qual == LR_CTRLKEY)) { if(okee("Quit Blender")) exit_usiblender(); } towin= 0; |