mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-27 21:08:29 +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()
|
private void correctPath()
|
||||||
{
|
{
|
||||||
string currentDir = Directory.GetCurrentDirectory();
|
if (!File.Exists(this.filePath))
|
||||||
|
|
||||||
if (!this.filePath.Contains(currentDir))
|
|
||||||
{
|
{
|
||||||
this.filePath = currentDir + "\\" + this.filePath;
|
string currentDir = Directory.GetCurrentDirectory();
|
||||||
}
|
|
||||||
|
if (!this.filePath.Contains(currentDir))
|
||||||
|
{
|
||||||
|
this.filePath = currentDir + "\\" + this.filePath;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user