diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-10-22 12:21:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-10-22 12:21:43 +0400 |
commit | 688cc11302caa8cde5649e6230c66a1c60cd24a2 (patch) | |
tree | 6e0228ff328b2f4a458f9dec1385a9c6810df8b3 /release | |
parent | 69c6bd604c36e06d704948bce1eb32134ac8971f (diff) |
added an option for python Draw.UIBlock(func, mouse_exit) so moving the mouse outside the popup wont close it.
Stops FBX Export and OBJ I/O from flickering a lot.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/export_fbx.py | 2 | ||||
-rw-r--r-- | release/scripts/export_obj.py | 2 | ||||
-rw-r--r-- | release/scripts/import_obj.py | 2 | ||||
-rw-r--r-- | release/scripts/object_drop.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/export_fbx.py b/release/scripts/export_fbx.py index 696d3d1561a..3f02a71f951 100644 --- a/release/scripts/export_fbx.py +++ b/release/scripts/export_fbx.py @@ -2952,7 +2952,7 @@ def write_ui(): #fbx_ui_write('/test.fbx') break - Draw.UIBlock(fbx_ui) + Draw.UIBlock(fbx_ui, 0) # GLOBALS.clear() diff --git a/release/scripts/export_obj.py b/release/scripts/export_obj.py index 79a224d63c3..9feb02638c3 100644 --- a/release/scripts/export_obj.py +++ b/release/scripts/export_obj.py @@ -694,7 +694,7 @@ def write_ui(filename): # hack so the toggle buttons redraw. this is not nice at all while GLOBALS['EVENT'] not in (EVENT_EXIT, EVENT_EXPORT): - Draw.UIBlock(obj_ui) + Draw.UIBlock(obj_ui, 0) if GLOBALS['EVENT'] != EVENT_EXPORT: return diff --git a/release/scripts/import_obj.py b/release/scripts/import_obj.py index b7bdd54fe6d..3aad0800cf7 100644 --- a/release/scripts/import_obj.py +++ b/release/scripts/import_obj.py @@ -878,7 +878,7 @@ def load_obj_ui(filepath, BATCH_LOAD= False): # hack so the toggle buttons redraw. this is not nice at all while GLOBALS['EVENT'] not in (EVENT_EXIT, EVENT_IMPORT): - Draw.UIBlock(obj_ui) + Draw.UIBlock(obj_ui, 0) if GLOBALS['EVENT'] != EVENT_IMPORT: return diff --git a/release/scripts/object_drop.py b/release/scripts/object_drop.py index 63a0bd574fb..f4803e62d98 100644 --- a/release/scripts/object_drop.py +++ b/release/scripts/object_drop.py @@ -216,7 +216,7 @@ def main(): # hack so the toggle buttons redraw. this is not nice at all while GLOBALS['EVENT'] == EVENT_REDRAW: - Draw.UIBlock(terain_clamp_ui) + Draw.UIBlock(terain_clamp_ui, 0) if __name__ == '__main__': main() |