diff --git a/source/components/CTweenMachine.ts b/source/components/CTweenMachine.ts index bb58478..23c6f99 100644 --- a/source/components/CTweenMachine.ts +++ b/source/components/CTweenMachine.ts @@ -403,7 +403,7 @@ export default class CTweenMachine extends Component const target = targets[i]; const property = target.property; - if (target.isNumber && valuesB && valuesB[i]) { + if (target.isNumber && valuesB && valuesB[i] !== null) { const vA = valuesA[i]; const vB = valuesB[i]; if (target.isArray) { @@ -424,7 +424,7 @@ export default class CTweenMachine extends Component } } else if (!valuesB || doSwitch) { - const value = valuesB && valuesB[i] ? valuesB[i] : valuesA[i]; + const value = valuesB && valuesB[i] !== null ? valuesB[i] : valuesA[i]; if (target.isArray) { let changed = false;