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>2009-09-04 02:37:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-09-04 02:37:09 +0400
commit02f951c3a05f6586f12d129c70adffd8315ec3b7 (patch)
treefea0ba96dffe2ee86a781046c57c52863532f73f /source/blender/makesdna
parentfc975a91484a1346049071fa9c6c8877820245cd (diff)
allow execution mode to be given as an argument to operators from python (requested by algorith)
example. bpy.ops.tfm.rotate('INVOKE_REGION_WIN', pivot=(0,1,2), ......) bpy_array.c - was too strict with types, 0 should be allowed as well as 0.0 in a float array.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_windowmanager_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h
index 7d03bbec1ee..10f83c8b9ec 100644
--- a/source/blender/makesdna/DNA_windowmanager_types.h
+++ b/source/blender/makesdna/DNA_windowmanager_types.h
@@ -285,6 +285,7 @@ typedef struct wmOperator {
ListBase macro; /* list of operators, can be a tree */
struct wmOperator *opm; /* current running macro, not saved */
+ short flag, pad[3];
} wmOperator;
@@ -295,6 +296,9 @@ typedef struct wmOperator {
/* add this flag if the event should pass through */
#define OPERATOR_PASS_THROUGH 8
+/* wmOperator flag */
+#define OPERATOR_REPORT_FREE 1
+
/* ************** wmEvent ************************ */
/* for read-only rna access, dont save this */