Skip to content

Commit

Permalink
Fixed scale detection (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLongmuir authored Dec 1, 2023
1 parent 6ec6648 commit 1e36730
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const fixBonesScaleCorrectionStep: Step = {
level: "info",
message: `Bones size: x: ${xBonesSize}, y: ${yBonesSize}, z: ${zBonesSize}`,
};
const bonesAre100TimesTooLarge = zBonesSize > 10 || yBonesSize > 10;
const bonesAre1000TimesTooLarge = zBonesSize > 100 || yBonesSize > 100;
const bonesAre100TimesTooLarge = zBonesSize > 100 || yBonesSize > 100;
const bonesAre1000TimesTooLarge = zBonesSize > 1000 || yBonesSize > 1000;

if (!bonesAre100TimesTooLarge) {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const fixMeshScaleCorrectionStep: Step = {
level: "info",
message: `Bones size: x: ${xBonesSize}, y: ${yBonesSize}, z: ${zBonesSize}`,
};
const bonesAre100TimesTooLarge = zBonesSize > 10 || yBonesSize > 10;
const bonesAre1000TimesTooLarge = zBonesSize > 100 || yBonesSize > 100;
const bonesAre100TimesTooLarge = zBonesSize > 100 || yBonesSize > 100;
const bonesAre1000TimesTooLarge = zBonesSize > 1000 || yBonesSize > 1000;

if (!bonesAre100TimesTooLarge) {
return {
Expand Down

0 comments on commit 1e36730

Please sign in to comment.