-
-
Notifications
You must be signed in to change notification settings - Fork 334
Fix Transform e2e error #2466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Transform e2e error #2466
Conversation
WalkthroughThe changes involve modifications to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev/1.4 #2466 +/- ##
===========================================
+<
8000
/span> Coverage 67.91% 68.31% +0.39%
===========================================
Files 908 908
Lines 94505 94510 +5
Branches 7937 7936 -1
===========================================
+ Hits 64187 64562 +375
+ Misses 30068 29698 -370
Partials 250 250
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/core/src/mesh/SkinnedMeshRenderer.ts (1)
208-213
: Consider adding unit tests for new conditional logicWith the introduction of the conditional branch based on
rootBone
, it's important to add or update unit tests to cover both scenarios:
- When
rootBone
is present.- When
rootBone
is absent.This will help ensure that the new logic behaves as expected in all cases and prevent potential regressions in the future.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/core/src/mesh/SkinnedMeshRenderer.ts
(1 hunks)
🔇 Additional comments (1)
packages/core/src/mesh/SkinnedMeshRenderer.ts (1)
208-213
: Conditional handling in _updateBounds
enhances robustness
The addition of the conditional check for rootBone
in the _updateBounds
method improves the control flow by appropriately handling cases where the skin
may not have a rootBone
. This ensures that the bounding box transformation is only applied when a rootBone
is present, enhancing the renderer's robustness.
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Other information:
Summary by CodeRabbit
New Features
Bug Fixes
Documentation