Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
Fix error when compiling all programs with an unassigned script asset
Browse files Browse the repository at this point in the history
- Fix error thrown when compiling all programs and there is an UdonSharpProgram asset with no script assigned in the project.
  • Loading branch information
MerlinVR committed Apr 7, 2020
1 parent 215d933 commit 8ffa1ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/UdonSharp/Editor/UdonSharpCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public UdonSharpCompiler(UdonSharpProgramAsset programAsset)

public UdonSharpCompiler(UdonSharpProgramAsset[] programAssets)
{
modules = programAssets.Select(e => new CompilationModule(e)).ToArray();
modules = programAssets.Where(e => e.sourceCsScript != null).Select(e => new CompilationModule(e)).ToArray();
}

public void Compile()
Expand Down

0 comments on commit 8ffa1ca

Please sign in to comment.