Really didn't need the path correction.

This commit is contained in:
Michael Smith 2016-05-01 23:38:10 -07:00
parent 70a417ac88
commit 6de63fa3c6

View File

@ -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