mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
EPSILON is too small
This commit is contained in:
@@ -240,8 +240,7 @@ function sampleMotionPaths (motionPaths, data, duration, fps) {
|
||||
// ensure every ratio section's length is the same
|
||||
var startRatioOffset = 0;
|
||||
|
||||
// from es6 Number.EPSILON
|
||||
var EPSILON = 2.220446049250313e-16;
|
||||
var EPSILON = 1e-6;
|
||||
|
||||
// do not need to compute last path
|
||||
for (var i = 0, l = motionPaths.length; i < l-1; i++) {
|
||||
|
||||
Reference in New Issue
Block a user