Browse Source

Use an epsilon to check if scaling is uniform

Popov72 5 years ago
parent
commit
0de00de49a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Meshes/transformNode.ts

+ 1 - 1
src/Meshes/transformNode.ts

@@ -1142,7 +1142,7 @@ export class TransformNode extends Node {
 
         // Normal matrix
         if (!this.ignoreNonUniformScaling) {
-            if (this._scaling.isNonUniform) {
+            if (this._scaling.isNonUniformWithinEpsilon(0.000001)) {
                 this._updateNonUniformScalingState(true);
             } else if (parent && (<TransformNode>parent)._nonUniformScaling) {
                 this._updateNonUniformScalingState((<TransformNode>parent)._nonUniformScaling);