Skip to content

Commit

Permalink
Fix: Fix applying scale to objects's condition (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
jane-rose authored Dec 2, 2020
1 parent 01b0057 commit 80a58a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/components/SMCanvas/TransformControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,9 +845,9 @@ class TransformControls extends Object3D {

shouldApplyScaleToObjects(parentEVec) {
return this.object.children.every((meshObject) => {
if (parentEVec.x * meshObject.scale.x < 0.01
|| parentEVec.y * meshObject.scale.y < 0.01
|| parentEVec.z * meshObject.scale.z < 0.01
if (parentEVec.x * this.object.scale.x * meshObject.scale.x < 0.01
|| parentEVec.y * this.object.scale.y * meshObject.scale.y < 0.01
|| parentEVec.z * this.object.scale.z * meshObject.scale.z < 0.01
) {
return false; // should disable
}
Expand Down

0 comments on commit 80a58a0

Please sign in to comment.