diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-06-09 14:30:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-06-09 14:30:11 +0400 |
commit | d36a1b4f06698bcf031f06f7f289ca4636f42c88 (patch) | |
tree | f8512bb7abf71c8c1be115fe9cbaf33460be4cf7 /release/ui | |
parent | a0ea138d31cfe90412a22a6a941acfa4ba7976a3 (diff) |
added layout attribute for setting the operator execution context.
eg, layout.operator_context = 'INVOKE_REGION_WIN'
Needed to set the context that menu item operators are executed in.
fixed missing NULL check with anim system debug printing.
Diffstat (limited to 'release/ui')
-rw-r--r-- | release/ui/space_sequencer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/ui/space_sequencer.py b/release/ui/space_sequencer.py index 01583e578ab..2c599fd96cd 100644 --- a/release/ui/space_sequencer.py +++ b/release/ui/space_sequencer.py @@ -188,7 +188,7 @@ class SEQUENCER_MT_strip(bpy.types.Menu): layout = self.layout st = context.space_data - # uiLayoutSetOperatorContext(layout, WM_OP_INVOKE_REGION_WIN); + layout.operator_context = 'INVOKE_REGION_WIN' layout.column() layout.item_enumO("TFM_OT_transform", "mode", 'TRANSLATION', text="Grab/Move") |