Skip to content
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: change VRMSpringBoneManager circular dependency error to warning #1462

Conversation

yue4u
Copy link
Contributor

@yue4u yue4u commented Aug 9, 2024

Change VRMSpringBoneManager circular dependency error to warning.
After this PR three-vrm will try the best to render models contain this issue instead of error out.

@yue4u yue4u requested a review from 0b5vr August 9, 2024 06:40
@@ -7,6 +7,8 @@ import { traverseChildrenUntilConditionMet } from './utils/traverseChildrenUntil

export class VRMSpringBoneManager {
private _joints = new Set<VRMSpringBoneJoint>();
private _hasWarnedCircularDependency = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

warn once per VRMSpringBoneManager (= a model). Good

Copy link
Contributor

@0b5vr 0b5vr left a comment

Choose a reason for hiding this comment

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

Thank you!

@yue4u yue4u merged commit f7f0b85 into dev Aug 9, 2024
5 checks passed
@yue4u yue4u deleted the fix/change-VRMSpringBoneManager-circular-dependency-error-to-warning branch August 9, 2024 07:06
@0b5vr 0b5vr added this to the next milestone Aug 9, 2024
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