Browse Source

removed useless extra min/max calc

Ronen 8 years ago
parent
commit
1bc188e000
1 changed files with 0 additions and 4 deletions
  1. 0 4
      MonoGameSceneGraph/Source/Nodes/Node.cs

+ 0 - 4
MonoGameSceneGraph/Source/Nodes/Node.cs

@@ -499,8 +499,6 @@ namespace MonoGameSceneGraph
                     BoundingBox curr = child.GetBoundingBox();
                     BoundingBox curr = child.GetBoundingBox();
                     min = Vector3.Min(min, curr.Min);
                     min = Vector3.Min(min, curr.Min);
                     max = Vector3.Max(max, curr.Max);
                     max = Vector3.Max(max, curr.Max);
-                    min = Vector3.Min(min, curr.Max);
-                    max = Vector3.Max(max, curr.Min);
                 }
                 }
             }
             }
 
 
@@ -510,8 +508,6 @@ namespace MonoGameSceneGraph
                 BoundingBox curr = entity.GetBoundingBox(this, _localTransform, _worldTransform);
                 BoundingBox curr = entity.GetBoundingBox(this, _localTransform, _worldTransform);
                 min = Vector3.Min(min, curr.Min);
                 min = Vector3.Min(min, curr.Min);
                 max = Vector3.Max(max, curr.Max);
                 max = Vector3.Max(max, curr.Max);
-                min = Vector3.Min(min, curr.Max);
-                max = Vector3.Max(max, curr.Min);
             }
             }
 
 
             // return final bounding box
             // return final bounding box