From 6de63fa3c6a31fcb236b38a64205a8fee0366c8c Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 1 May 2016 23:38:10 -0700 Subject: [PATCH] Really didn't need the path correction. --- OSCADSharp/OSCADSharp/Solids/ImportedModel.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/OSCADSharp/OSCADSharp/Solids/ImportedModel.cs b/OSCADSharp/OSCADSharp/Solids/ImportedModel.cs index 493c821..73108aa 100644 --- a/OSCADSharp/OSCADSharp/Solids/ImportedModel.cs +++ b/OSCADSharp/OSCADSharp/Solids/ImportedModel.cs @@ -29,7 +29,6 @@ namespace OSCADSharp.Solids public ImportedModel(string filePath) { this.filePath = filePath; - this.correctPath(); //TODO: Attempt to compute bounds } @@ -41,23 +40,8 @@ namespace OSCADSharp.Solids public ImportedModel(string filePath, Bounds bounds) { this.filePath = filePath; - this.correctPath(); - this.objectBounds = bounds; } - - private void correctPath() - { - if (!File.Exists(this.filePath)) - { - string currentDir = Directory.GetCurrentDirectory(); - - if (!this.filePath.Contains(currentDir)) - { - this.filePath = currentDir + "\\" + this.filePath; - } - } - } #endregion #region OSCADObject Overrides