- [Repeat] Fix repeat rotation wrap around too fast.

This commit is contained in:
Tanasart 2024-07-19 12:40:29 +07:00
parent a7fcefa5ef
commit 2f6e7d2abb

View file

@ -254,7 +254,7 @@ function Node_Repeat(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) co
scax = eval_curve_x(_msca, i / (_amo - 1)) * _rsca; scax = eval_curve_x(_msca, i / (_amo - 1)) * _rsca;
scay = scax; scay = scax;
rot = _rrot[0] + (_rrot[1] - _rrot[0]) * i / (_amo - 1); rot = _rrot[0] + (_rrot[1] - _rrot[0]) * i / _amo;
var _an_dist = abs(i - _an_mid * (_amo - 1)); var _an_dist = abs(i - _an_mid * (_amo - 1));
var _inf = 0; var _inf = 0;