Skip to content
Snippets Groups Projects
Commit baf1875a authored by WJohnM18's avatar WJohnM18
Browse files

Update loader to decode relative path so that loading works with directories with spaces

parent cee33753
No related branches found
No related tags found
1 merge request!10Evaluation
......@@ -3,6 +3,7 @@ using System.IO;
using System.Xml.Serialization;
using UnityEditor;
using UnityEngine;
using System.Web;
public class JsonRenderSettingUnityPackageLoader : IFileRenderSettingLoader
{
......@@ -64,11 +65,7 @@ public class JsonRenderSettingUnityPackageLoader : IFileRenderSettingLoader
Debug.Log("CurrDir: " + currentDirUri);
Debug.Log("Relative: " + currentDirUri.MakeRelativeUri(new Uri(path)));
Debug.Log("Path: " + currentDirUri);
Debug.Log("CurrDir: " + new Uri(path));
Debug.Log("Relative: " + new Uri(path).MakeRelativeUri(currentDirUri));
return relativePath.ToString();
return Uri.UnescapeDataString(relativePath.ToString()); ;
}
private IVisualBlueprint LoadVisualBlueprint(string presetDirectory, VisualBlueprintDependenciesReferenceData data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment