mirror of
https://github.com/Ellpeck/Contentless.git
synced 2024-11-26 08:58:33 +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>
|
<package>
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>Contentless</id>
|
<id>Contentless</id>
|
||||||
<version>2.0.2</version>
|
<version>2.0.3</version>
|
||||||
<authors>Ellpeck</authors>
|
<authors>Ellpeck</authors>
|
||||||
<description>A tool for MonoGame that automatically handles adding assets to the Content Pipeline project</description>
|
<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>
|
<tags>monogame mono xna content pipeline mgcb builder tool library</tags>
|
||||||
|
|
|
@ -116,7 +116,7 @@ namespace Contentless {
|
||||||
// normal importers
|
// normal importers
|
||||||
if (importer == null)
|
if (importer == null)
|
||||||
importer = GetImporterFor(relative, importers);
|
importer = GetImporterFor(relative, importers);
|
||||||
if (processor == null)
|
if (importer != null && processor == null)
|
||||||
processor = Array.Find(processors, p => p == importer.Importer.DefaultProcessor);
|
processor = Array.Find(processors, p => p == importer.Importer.DefaultProcessor);
|
||||||
|
|
||||||
// no importer found :(
|
// no importer found :(
|
||||||
|
|
Loading…
Reference in a new issue