Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix setParameterValue bug #2279

Merged
merged 12 commits into from
Jul 31, 2024
2 changes: 1 addition & 1 deletion packages/core/src/animation/Animator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export class Animator extends Component {
*/
setParameterValue(name: string, value: AnimatorControllerParameterValue) {
const parameter = this._animatorController?._parametersMap[name];
if (parameter && parameter.defaultValue !== value) {
if (parameter) {
this._parametersValueMap[name] = value;
}
}
Expand Down
Loading