Skip to content

Commit b62b417

Browse files
committed
changed assetPath to be a simple variable
1 parent 55ffecc commit b62b417

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Editor/ShaderGenerator.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ namespace VRLabs.ModularShaderSystem
1111
{
1212
public static class ShaderGenerator
1313
{
14-
private static string assetPath;
15-
1614
/// <summary>
1715
/// Generates a shader with all shader variants
1816
/// </summary>
@@ -73,7 +71,7 @@ public static void GenerateShader(string path, ModularShader shader, Action<Stri
7371

7472
foreach (Shader generatedShader in shader.LastGeneratedShaders.Where(x => x != null))
7573
{
76-
assetPath = AssetDatabase.GetAssetPath(generatedShader);
74+
string assetPath = AssetDatabase.GetAssetPath(generatedShader);
7775
if(string.IsNullOrWhiteSpace(assetPath))
7876
File.Delete(assetPath);
7977
}

0 commit comments

Comments
 (0)