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-02-23 02:25:34 +0300
committerMartin Poirier <theeth@yahoo.com>2010-02-23 02:25:34 +0300
commita8d364ce4accb900c690229925356ba2ffabdc74 (patch)
treedccaeb695cd57ab1f63311e2f87b586b705ae7f7 /source/blender/editors/animation/anim_markers.c
parent8a31fab3041d4c9804fdce036dc70637f4993507 (diff)
Move increment value into numinput structure.
Easier for transform to have different values per transform then (also different from gears values). (Based on a bug reported by Jonathan Smith)
Diffstat (limited to 'source/blender/editors/animation/anim_markers.c')
-rw-r--r--source/blender/editors/animation/anim_markers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_markers.c b/source/blender/editors/animation/anim_markers.c
index e6280a2556c..efdb9008014 100644
--- a/source/blender/editors/animation/anim_markers.c
+++ b/source/blender/editors/animation/anim_markers.c
@@ -436,6 +436,7 @@ static int ed_marker_move_init(bContext *C, wmOperator *op)
initNumInput(&mm->num);
mm->num.idx_max = 0; /* one axis */
mm->num.flag |= NUM_NO_FRACTION;
+ mm->num.increment = 1.0f;
for (a=0, marker= markers->first; marker; marker= marker->next) {
if (marker->flag & SELECT) {
@@ -617,7 +618,7 @@ static int ed_marker_move_modal(bContext *C, wmOperator *op, wmEvent *evt)
float vec[3];
char str_tx[256];
- if (handleNumInput(&mm->num, evt, 1.0))
+ if (handleNumInput(&mm->num, evt))
{
applyNumInput(&mm->num, vec);
outputNumInput(&mm->num, str_tx);