Skip to content

fix: 更新版本号至 1.8.6-fix1,并修复 AnimatorParameterDriverManager 中的随机整数生成逻辑#15

Merged
BAKAOLC merged 2 commits into
mainfrom
develop
Nov 21, 2025
Merged

fix: 更新版本号至 1.8.6-fix1,并修复 AnimatorParameterDriverManager 中的随机整数生成逻辑#15
BAKAOLC merged 2 commits into
mainfrom
develop

Conversation

@BAKAOLC

@BAKAOLC BAKAOLC commented Nov 21, 2025

Copy link
Copy Markdown
Collaborator

修复内容

  • 修复 AnimatorParameterDriverManager 中的随机整数生成逻辑
  • 修正 AnimatorParameterDriverManager 中随机整数生成的范围,确保包含最大值
  • 修正复制参数操作的范围转换逻辑
  • 更新 ModelParameterDriver 和 BlueprintID 组件的文档注释,增强可读性和理解性

- 修改 ModVersion 为 1.8.6-fix1
- 修正 AnimatorParameterDriverManager 中随机整数生成的范围,确保包含最大值
- 更新 ModelParameterDriver 和 BlueprintID 组件的文档注释,增强可读性和理解性
Copilot AI review requested due to automatic review settings November 21, 2025 10:19
@BAKAOLC BAKAOLC merged commit 2216e3d into main Nov 21, 2025
5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes critical bugs in the AnimatorParameterDriverManager component and updates the version to 1.8.6-fix1. The fixes address incorrect random integer range generation, wrong field references in range conversion, and improves floating-point comparison safety. Documentation enhancements provide better clarity for the BlueprintID and ModelParameterDriver components.

  • Fixed random integer generation to properly include the maximum value by adding +1 to the upper bound
  • Corrected copy parameter operation to use the correct destination range fields (destMin/destMax instead of valueMin/valueMax)
  • Improved floating-point division by zero check using Mathf.Epsilon instead of direct zero comparison

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
DuckovCustomModel/Constant.cs Version number updated to 1.8.6-fix1
DuckovCustomModel.Core/MonoBehaviours/Packages/BlueprintID.cs Added XML documentation comments for class and field
DuckovCustomModel.Core/MonoBehaviours/Animators/ModelParameterDriver.cs Added XML documentation comments for class and runtime-cached parameter fields
DuckovCustomModel.Core/Managers/AnimatorParameterDriverManager.cs Fixed random integer generation logic, corrected range conversion field references, and improved float comparison
CHANGELOG_EN.md Added v1.8.6-fix1 changelog entry
CHANGELOG.md Added v1.8.6-fix1 changelog entry (Chinese)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants