Skip to content

Commit

Permalink
fix bug with manual asset creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Happyrobot33 committed Jun 18, 2024
1 parent 632b8d5 commit 3f17005
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ public override void OnInspectorGUI()
{
AtlasInformation atlasInformation = (AtlasInformation)target;

//make sure the textuers list is not null
if (atlasInformation.Textures == null)
{
atlasInformation.Textures = new List<Texture2D>();
}

//make sure the list is the total size of the grid
if (atlasInformation.Textures.Count != atlasInformation.Grid.x * atlasInformation.Grid.y)
{
Expand Down
2 changes: 1 addition & 1 deletion Packages/com.happyrobot33.atlasgenerator/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.happyrobot33.atlasgenerator",
"displayName": "Atlas Generator",
"version": "0.0.2",
"version": "0.0.3",
"unity": "2019.4",
"description": "This package provides a system to automatically generate atlases upon texture changes",
"author": {
Expand Down

0 comments on commit 3f17005

Please sign in to comment.