mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-11 21:48:34 +00:00
Really didn't need the path correction.
This commit is contained in:
parent
70a417ac88
commit
6de63fa3c6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user