PyOperator invoke function now receives the wmEvent and default properties as 2 pytho...
authorCampbell Barton <ideasman42@gmail.com>
Sun, 28 Dec 2008 08:41:49 +0000 (08:41 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 28 Dec 2008 08:41:49 +0000 (08:41 +0000)
commit625f47755458a1b4b3ad9743aa14ae24700e00b6
treebff2af4e39d919e24943795844556442b0c0d3dd
parent61b3c4fefc461c2f492e0bf544a0cd7bf2b6e5b3
PyOperator invoke function now receives the wmEvent and default properties as 2 python dictionary args.
the Python invoke function can then edit the properties based on the event, once its finished the properties are copied back to the operator.

python exec and invoke functions can now return RUNNING_MODAL, CANCELLED, FINISHED, PASS_THROUGH flags

Still need to look into how python operators can make use of invoke/exec for a practical case. (Need to bring back the popup menu's)
source/blender/python/intern/bpy_operator.c
source/blender/python/intern/bpy_operator.h
source/blender/python/intern/bpy_opwrapper.c
source/blender/python/intern/bpy_util.c [new file with mode: 0644]
source/blender/python/intern/bpy_util.h [new file with mode: 0644]