mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-13 22:48:33 +00:00
Corrected logic in path correction for 3d model import
This commit is contained in:
parent
2cd40e157c
commit
70a417ac88
@ -48,12 +48,15 @@ namespace OSCADSharp.Solids
|
||||
|
||||
private void correctPath()
|
||||
{
|
||||
string currentDir = Directory.GetCurrentDirectory();
|
||||
|
||||
if (!this.filePath.Contains(currentDir))
|
||||
if (!File.Exists(this.filePath))
|
||||
{
|
||||
this.filePath = currentDir + "\\" + this.filePath;
|
||||
}
|
||||
string currentDir = Directory.GetCurrentDirectory();
|
||||
|
||||
if (!this.filePath.Contains(currentDir))
|
||||
{
|
||||
this.filePath = currentDir + "\\" + this.filePath;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user