Skip to content

Commit

Permalink
Merge pull request #810 from ousttrue/fix/gltfparser_targetpath
Browse files Browse the repository at this point in the history
fix GltfParser.TargetPath
  • Loading branch information
ousttrue authored Mar 22, 2021
2 parents b40c65d + 276d132 commit d09f012
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Assets/UniGLTF/Runtime/UniGLTF/IO/GltfParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,15 @@ public void ParsePath(string path)
Parse(path, File.ReadAllBytes(path));
}

public string TargetPath;
string m_targetPath;
public string TargetPath
{
get => m_targetPath;
set
{
m_targetPath = Path.GetFullPath(value);
}
}

/// <summary>
/// Parse gltf json or Parse json chunk of glb
Expand Down

0 comments on commit d09f012

Please sign in to comment.