Time-Slide transform tool in the Action Editor now works as well as it did before the Action-Keys transform refactor. However, numeric input is now broken as a side-effect of this.
This commit is contained in:
Joshua Leung
2008-03-08 11:08:24 +00:00
parent b5cdd1f2d6
commit 19ec73c908
2 changed files with 7 additions and 4 deletions

View File

@@ -4353,12 +4353,15 @@ static void applyTimeSlide(TransInfo *t, float sval)
float minx= *((float *)(t->customData));
float maxx= *((float *)(t->customData) + 1);
/* set value for drawing black line */
if (t->spacetype == SPACE_ACTION) {
G.saction->timeslide= t->fac;
float cvalf = t->fac;
if (NLA_ACTION_SCALED)
sval= get_action_frame(OBACT, sval);
cvalf= get_action_frame(OBACT, cvalf);
G.saction->timeslide= cvalf;
}
/* it doesn't matter whether we apply to t->data or t->data2d, but t->data2d is more convenient */
@@ -4374,7 +4377,7 @@ static void applyTimeSlide(TransInfo *t, float sval)
cval= get_action_frame(ob, cval);
/* only apply to data if in range */
if (sval > minx && sval < maxx) {
if ((sval > minx) && (sval < maxx)) {
float cvalc= CLAMPIS(cval, minx, maxx);
float timefac;

View File

@@ -2653,7 +2653,7 @@ static void createTransActionData(TransInfo *t)
/* check if we're supposed to be setting minx/maxx for TimeSlide */
if (t->mode == TFM_TIME_SLIDE) {
float min = 0, max = 0;
float min=999999999.0f, max=-999999999.0;
int i;
td= (t->data + 1);