From 625f47755458a1b4b3ad9743aa14ae24700e00b6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 28 Dec 2008 08:41:49 +0000 Subject: 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.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/python/intern/bpy_operator.h') diff --git a/source/blender/python/intern/bpy_operator.h b/source/blender/python/intern/bpy_operator.h index 55797f6d8cc..19c503c1e8c 100644 --- a/source/blender/python/intern/bpy_operator.h +++ b/source/blender/python/intern/bpy_operator.h @@ -51,4 +51,7 @@ PyObject *BPY_operator_module(bContext *C ); PyObject *pyop_base_CreatePyObject(bContext *C ); PyObject *pyop_func_CreatePyObject(bContext *C, char *name ); +/* fill in properties from a python dict */ +int PYOP_props_from_dict(PointerRNA *ptr, PyObject *kw); + #endif -- cgit v1.2.3