Skip to content

Commit

Permalink
fix Package include logic breaking stuff because of a missing else
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkc0d3r committed Aug 15, 2024
1 parent 490d0ff commit a24a431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/ShaderAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private bool RecursiveParseFile(string currentFileName, bool isTopLevelFile, str
var assetFolderPath = path.IndexOf("Assets") != -1 ? path.Substring(0, path.IndexOf("Assets") - 1) : path;
currentFilePath = Path.Combine(assetFolderPath, currentFilePath.TrimStart('/'));
}
if (currentFilePath.StartsWithSimple("/Packages/") || currentFilePath.StartsWithSimple("Packages/"))
else if (currentFilePath.StartsWithSimple("/Packages/") || currentFilePath.StartsWithSimple("Packages/"))
{
var path = Path.GetDirectoryName(callerPath);
var packageFolderPath = path.IndexOf("Packages") != -1 ? path.Substring(0, path.IndexOf("Packages") - 1) : path;
Expand Down

0 comments on commit a24a431

Please sign in to comment.