Blender Git Commit Log

Git Commits -> Revision 64ff9d6

Revision 64ff9d6 by Campbell Barton (master)
November 4, 2010, 12:59 (GMT)
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')

Commit Details:

Full Hash: 64ff9d6de40740866c290f1e1e88e6e22a1ca5e7
SVN Revision: 32866
Parent Commit: 0e81723
Lines Changed: +64, -39

6 Modified Paths:

/release/scripts/modules/bpy/ops.py (+24, -24) (Diff)
/source/blender/editors/interface/interface.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_regions.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_operator.c (+15, -3) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+22, -10) (Diff)
/source/blender/windowmanager/WM_api.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021