diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-04-02 23:40:51 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-04-02 23:40:51 +0400 |
commit | 5a805c5fc3f2e262e37dfcc3673b70bf666ffe9f (patch) | |
tree | 4ff5db9f88471550d532e6853dd550d75b576250 /source/blender/editors/include/ED_transform.h | |
parent | 9a027080df135ade5d2237ffff299a0b1762910d (diff) |
[#21840] When clicking to move a Node it sticks to the mouse
Add hidden property to be able to force confirm on release (drag immediately is a silly name) on or off.
Streamline method for adding common properties to transform operators.
Diffstat (limited to 'source/blender/editors/include/ED_transform.h')
-rw-r--r-- | source/blender/editors/include/ED_transform.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h index 8267ed022e3..d8954be08c9 100644 --- a/source/blender/editors/include/ED_transform.h +++ b/source/blender/editors/include/ED_transform.h @@ -135,9 +135,15 @@ void BIF_selectOrientation(void); /* to be able to add operator properties to other operators */ -void Properties_Proportional(struct wmOperatorType *ot); -void Properties_Snapping(struct wmOperatorType *ot, short fullsnap, short align); -void Properties_Constraints(struct wmOperatorType *ot); +#define P_MIRROR (1 << 0) +#define P_PROPORTIONAL (1 << 1) +#define P_AXIS (1 << 2) +#define P_SNAP (1 << 3) +#define P_GEO_SNAP (P_SNAP|(1 << 4)) +#define P_ALIGN_SNAP (P_GEO_SNAP|(1 << 5)) +#define P_CONSTRAINT (1 << 6) + +void Transform_Properties(struct wmOperatorType *ot, int flags); /* view3d manipulators */ |