fixed smoothstep edge if center = 0

This commit is contained in:
peterkogo
2024-02-27 17:16:31 +01:00
parent e5c667d068
commit dcddc70535

View File

@@ -81,8 +81,8 @@ function getPoints({
// opposite handle positions, default case
if (sourceDir[dirAccessor] * targetDir[dirAccessor] === -1) {
centerX = center.x || defaultCenterX;
centerY = center.y || defaultCenterY;
centerX = center.x ?? defaultCenterX;
centerY = center.y ?? defaultCenterY;
// --->
// |
// >---