Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-12-28 11:41:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-12-28 11:41:49 +0300
commit625f47755458a1b4b3ad9743aa14ae24700e00b6 (patch)
treebff2af4e39d919e24943795844556442b0c0d3dd /source/blender/python/intern/bpy_operator.h
parent61b3c4fefc461c2f492e0bf544a0cd7bf2b6e5b3 (diff)
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)
Diffstat (limited to 'source/blender/python/intern/bpy_operator.h')
-rw-r--r--source/blender/python/intern/bpy_operator.h3
1 files changed, 3 insertions, 0 deletions
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