Page MenuHome

patch-2429.txt

Authored By
Ken Hughes (khughes)
Nov 13 2013, 1:01 PM
Size
982 B
Subscribers
None

patch-2429.txt

Index: blender/source/blender/python/api2_2x/Draw.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Draw.c,v
retrieving revision 1.35
diff -u -u -r1.35 Draw.c
--- blender/source/blender/python/api2_2x/Draw.c 8 May 2005 21:20:33 -0000 1.35
+++ blender/source/blender/python/api2_2x/Draw.c 17 May 2005 03:47:35 -0000
@@ -538,10 +538,14 @@
event = 0;
if( event == UI_BUT_EVENT ) {
-
- if( menu_hack && ( val == 4 ) ) { /* "false" event? */
+ if( menu_hack && val == UI_RETURN_OK ) { /* "false" event? */
+ if ( menu_hack == 2 ) /* was last event 8? */
+ spacescript_do_pywin_buttons( sc, UI_RETURN_OUT ); /* if so, send */
menu_hack = 0; /* if so, discard it and clear menu_hack */
- } else {
+ }
+ else if( val == UI_RETURN_OUT ) /* possible cancel */
+ menu_hack = 2;
+ else {
menu_hack = 1;
spacescript_do_pywin_buttons( sc, val );
}

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4d/df/833c9b31f22969fe38ecd6d3f32f

Event Timeline