Skip to content

Commit 1305d50

Browse files
committed
Fixed issue with generator's GerPathRelativeToProject
1 parent e60665d commit 1305d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/ShaderGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private static string GetPathRelativeToProject(string path)
107107
throw new DirectoryNotFoundException($"The folder \"{path}\" is not part of the unity project");
108108

109109
if(!path.StartsWith("Assets"))
110-
path = path.Replace(Application.dataPath, "");
110+
path = path.Replace(Application.dataPath, "Assets");
111111

112112
return path;
113113
}

0 commit comments

Comments
 (0)