mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-21 18:28:28 +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)
|
public ImportedModel(string filePath)
|
||||||
{
|
{
|
||||||
this.filePath = filePath;
|
this.filePath = filePath;
|
||||||
this.correctPath();
|
|
||||||
//TODO: Attempt to compute bounds
|
//TODO: Attempt to compute bounds
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,23 +40,8 @@ namespace OSCADSharp.Solids
|
|||||||
public ImportedModel(string filePath, Bounds bounds)
|
public ImportedModel(string filePath, Bounds bounds)
|
||||||
{
|
{
|
||||||
this.filePath = filePath;
|
this.filePath = filePath;
|
||||||
this.correctPath();
|
|
||||||
|
|
||||||
this.objectBounds = bounds;
|
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
|
#endregion
|
||||||
|
|
||||||
#region OSCADObject Overrides
|
#region OSCADObject Overrides
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user