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:
authorMartin Poirier <theeth@yahoo.com>2010-04-03 21:38:43 +0400
committerMartin Poirier <theeth@yahoo.com>2010-04-03 21:38:43 +0400
commit824be96dc053dbb159efbd40433dbb9a798a785d (patch)
treedf7fe8b762efb9fe59dae2d060b4a8d34f5807c8 /source/blender/editors/transform/transform_ops.c
parentea44ea86f9d74efe90827294ffa2d9069ce72f4d (diff)
More work on Drag Immediate:
- Rename option and flag to something more sane - Add property to manipulator operator and set true by default Confirm on Release can now be forced true or false per operator, in which case it won't use the default value (the user preference).
Diffstat (limited to 'source/blender/editors/transform/transform_ops.c')
-rw-r--r--source/blender/editors/transform/transform_ops.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/source/blender/editors/transform/transform_ops.c b/source/blender/editors/transform/transform_ops.c
index 53cbfd208b6..6059d9d4697 100644
--- a/source/blender/editors/transform/transform_ops.c
+++ b/source/blender/editors/transform/transform_ops.c
@@ -381,23 +381,10 @@ static int transform_invoke(bContext *C, wmOperator *op, wmEvent *event)
}
}
-#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)
{
PropertyRNA *prop;
- // Add confirm method all the time
- prop = RNA_def_boolean(ot->srna, "release_confirm", 0, "Confirm on Release", "Confirm operation when releasing button");
- RNA_def_property_flag(prop, PROP_HIDDEN);
-
if (flags & P_AXIS)
{
prop= RNA_def_property(ot->srna, "axis", PROP_FLOAT, PROP_DIRECTION);
@@ -440,6 +427,10 @@ void Transform_Properties(struct wmOperatorType *ot, int flags)
}
}
}
+
+ // Add confirm method all the time. At the end because it's not really that important and should be hidden
+ prop = RNA_def_boolean(ot->srna, "release_confirm", 0, "Confirm on Release", "Always confirm operation when releasing button");
+ //RNA_def_property_flag(prop, PROP_HIDDEN);
}
void TRANSFORM_OT_translate(struct wmOperatorType *ot)