mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 06:04:03 +00:00
lottie/expressions: rectified $bm_sum()
Added only a single element to x.
This commit is contained in:
parent
b36db92a7b
commit
6b0c81bf36
1 changed files with 2 additions and 7 deletions
|
@ -351,13 +351,8 @@ static jerry_value_t _addsub(const jerry_value_t args[], float addsub)
|
|||
if (n1 || n2) {
|
||||
auto secondary = n1 ? 0 : 1;
|
||||
auto val3 = jerry_value_as_number(args[secondary]);
|
||||
if (secondary == 0) {
|
||||
x = (x * addsub) + val3;
|
||||
y = (y * addsub) + val3;
|
||||
} else {
|
||||
x += (addsub * val3);
|
||||
y += (addsub * val3);
|
||||
}
|
||||
if (secondary == 0) x = (x * addsub) + val3;
|
||||
else x += (addsub * val3);
|
||||
//2d + 2d
|
||||
} else {
|
||||
auto val3 = jerry_object_get_index(args[1], 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue