mirror of
https://github.com/Ellpeck/Contentless.git
synced 2024-12-22 19:59:23 +01:00
fixed a crash when the importer was missing
This commit is contained in:
parent
f08d0c2393
commit
33f5c14583
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
<package>
|
||||
<metadata>
|
||||
<id>Contentless</id>
|
||||
<version>2.0.2</version>
|
||||
<version>2.0.3</version>
|
||||
<authors>Ellpeck</authors>
|
||||
<description>A tool for MonoGame that automatically handles adding assets to the Content Pipeline project</description>
|
||||
<tags>monogame mono xna content pipeline mgcb builder tool library</tags>
|
||||
|
|
|
@ -116,7 +116,7 @@ namespace Contentless {
|
|||
// normal importers
|
||||
if (importer == null)
|
||||
importer = GetImporterFor(relative, importers);
|
||||
if (processor == null)
|
||||
if (importer != null && processor == null)
|
||||
processor = Array.Find(processors, p => p == importer.Importer.DefaultProcessor);
|
||||
|
||||
// no importer found :(
|
||||
|
|
Loading…
Reference in a new issue