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

Fix SettingsLoader using hardcoded preset name

parent dedb6ad9
No related branches found
No related tags found
1 merge request!1Save and load
......@@ -18,7 +18,7 @@ public class SettingsLoader {
RenderSettingPreset preset = new RenderSettingPreset();
preset.SetName(presetData.GetName());
string relativePath = CalculateRelativePath(path);
string relativePath = CalculateRelativePath(Directory.GetParent(path).Name);
foreach(VisualBlueprintReferenceData blueprint in presetData.GetVisualBlueprintData()) {
preset.AddVisualBlueprint(LoadVisualBlueprint(relativePath, blueprint));
......@@ -31,7 +31,8 @@ public class SettingsLoader {
}
private string CalculateRelativePath(string path) {
return "Assets/RenderPresets/Demo/";
Debug.Log(path);
return "Assets/RenderPresets/" + path + "/";
}
private VisualBlueprint LoadVisualBlueprint(string presetDirectory , VisualBlueprintReferenceData 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