edje: fix parsing issue in edje_cc with bezier program transition.

Summary:
Issue: "CURRENT" param not considered while parsing cubic bezier transition in edje cc
Soln: parse 5,6 parameter if Curr is set else parse 4,5 parameter

Reviewers: cedric, shilpasingh

Reviewed By: shilpasingh

Subscribers: poornima.srinivasan, rajeshps, cedric, govi

Differential Revision: https://phab.enlightenment.org/D2488

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
kumar navneet 2015-05-13 16:18:47 +02:00 committed by Cedric BAIL
parent bfe8b7c05e
commit e6ed156e39
2 changed files with 15 additions and 4 deletions

View File

@ -320,6 +320,7 @@ Andrii Kroitor <an.kroitor@samsung.com>
Vorobiov Vitalii <vi.vorobiov@samsung.com>
m.biliavskyi <m.biliavskyi@samsung.com>
Vyacheslav Reutskiy <v.reutskiy@samsung.com>
Kumar Navneet <k.navneet@samsung.com>
Emotion
-------

View File

@ -12390,10 +12390,20 @@ st_collections_group_programs_program_transition(void)
FROM_DOUBLE(parse_float_range(2, -999999999.0, 999999999.0));
current_program->tween.v2 =
FROM_DOUBLE(parse_float_range(3, -999999999.0, 999999999.0));
current_program->tween.v3 =
FROM_DOUBLE(parse_float_range(4, -999999999.0, 999999999.0));
current_program->tween.v4 =
FROM_DOUBLE(parse_float_range(5, -999999999.0, 999999999.0));
if (get_arg_count() == 7)
{
current_program->tween.v3 =
FROM_DOUBLE(parse_float_range(5, -999999999.0, 999999999.0));
current_program->tween.v4 =
FROM_DOUBLE(parse_float_range(6, -999999999.0, 999999999.0));
}
else
{
current_program->tween.v3 =
FROM_DOUBLE(parse_float_range(4, -999999999.0, 999999999.0));
current_program->tween.v4 =
FROM_DOUBLE(parse_float_range(5, -999999999.0, 999999999.0));
}
}
}