diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-04 15:59:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-04 15:59:03 +0300 |
commit | 64ff9d6de40740866c290f1e1e88e6e22a1ca5e7 (patch) | |
tree | 00b710119c7a21088fda1d9f833afff5b965fc37 /source/blender/editors/space_view3d/drawanimviz.c | |
parent | 0e8172368356943e0bae95ec4a8d4ecdc9dba793 (diff) |
fix to allow [#24009] to be fixed.
WM_operator_poll() could fail in cases WM_operator_name_call() would succeed because calling the operator would setup the context before calling poll.
this would result in python raising an invalid error or menu items being greyed out.
now python can also check with an operator context:
bpy.ops.object.editmode_toggle.poll('INVOKE_SCREEN')
Diffstat (limited to 'source/blender/editors/space_view3d/drawanimviz.c')
0 files changed, 0 insertions, 0 deletions