Skip to content

Commit

Permalink
Fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Artees committed Sep 13, 2019
1 parent 70f5c62 commit 389bbba
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Editor/SvgImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ internal class SvgImporter : ScriptedImporter
public override void OnImportAsset(AssetImportContext ctx)
{
var relativeSvgPath = ctx.assetPath;
if (string.IsNullOrEmpty(relativeSvgPath)) return;
if (string.IsNullOrEmpty(relativeSvgPath) || relativeSvgPath.StartsWith("Packages/")) return;
var settings = SvgImporterSettings.Load();
var texture = new Texture2D(4, 4) {alphaIsTransparency = true};
var svgFolder = Path.GetDirectoryName(relativeSvgPath)?.Replace("\\", "/");
Expand Down
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@

{
"name" : "games.artees.svg-importer",
"version" : "1.2.1",
"version" : "2.0.0",
"displayName" : "SVG Importer",
"description" : "SVG Importer for Unity",
"unity" : "2019.1",
"unityRelease" : "",
"dependencies" : {
},
"keywords" : [
],
"unity" : "2019.2",
"author" : {
"name" : "Artees",
"email" : "[email protected]",
Expand Down
7 changes: 4 additions & 3 deletions package.json.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.jsonpackage
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

{
"name" : "games.artees.svg-importer",
"version" : "1.2.1",
"version" : "2.0.0",
"displayName" : "SVG Importer",
"description" : "SVG Importer for Unity",
"unity" : "2019.1",
"unity" : "2019.2",
"unityRelease" : "",
"dependencies" : {
},
Expand Down
5 changes: 3 additions & 2 deletions package.jsonpackage.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 389bbba

Please sign in to comment.