mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 22:46:19 +01:00
Sprite sheet: ceil sync frame.
This commit is contained in:
parent
d249134988
commit
80b02f7eab
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ function Node_Image_Sheet(_x, _y, _group = noone) : Node(_x, _y, _group) constru
|
||||||
.setDisplay(VALUE_DISPLAY.button, [ function() {
|
.setDisplay(VALUE_DISPLAY.button, [ function() {
|
||||||
var _atl = outputs[| 1].getValue();
|
var _atl = outputs[| 1].getValue();
|
||||||
var _spd = inputs[| 8].getValue();
|
var _spd = inputs[| 8].getValue();
|
||||||
PROJECT.animator.frames_total = max(1, _spd == 0? 1 : array_length(_atl) / _spd);
|
PROJECT.animator.frames_total = max(1, _spd == 0? 1 : ceil(array_length(_atl) / _spd));
|
||||||
}, "Sync frames"] );
|
}, "Sync frames"] );
|
||||||
|
|
||||||
inputs[| 12] = nodeValue("Filter empty output", self, JUNCTION_CONNECT.input, VALUE_TYPE.boolean, false);
|
inputs[| 12] = nodeValue("Filter empty output", self, JUNCTION_CONNECT.input, VALUE_TYPE.boolean, false);
|
||||||
|
|
Loading…
Reference in a new issue