loodakrawa / SpriterDotNet

A pure C# Spriter implementation
zlib License
220 stars 75 forks source link

Process only files by spriter importer #91

Closed rfadeev closed 6 years ago

rfadeev commented 6 years ago

Unity imports folders and folder path is passed to OnPostprocessAllAssets method. If folder name ends with .scml, SpriterImporter tried to import it as .scml file which led to UnauthorizedAccessException when calling File.ReadAllText in CreateSpriter method.

This pull request extends scml asset check to avoid such folders.

loodakrawa commented 6 years ago

Thanks!