-
Notifications
You must be signed in to change notification settings - Fork 119
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
Improvement: Limit scale value in 3DP to avoid object dimension setting to 0 #586
Improvement: Limit scale value in 3DP to avoid object dimension setting to 0 #586
Conversation
|| parentEVec.y * meshObject.scale.y < 0.01 | ||
|| parentEVec.z * meshObject.scale.z < 0.01 | ||
) { | ||
shouldDisableScale = true; |
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.
break or return
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.
inside 'forEach' can't use break or return, i change it to 'every'
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.
You can return the value of Array.every()
shouldApplyScaleToObjects(parentEVec) {
return this.object.children.every((meshObject) => {
if (condition) {
return false; // should disable
}
return true;
});
}
7ba0712
to
8ee1c9a
Compare
8ee1c9a
to
e8b7b0e
Compare
LGTM |
No description provided.