Skip to content

Commit

Permalink
不要なフォルダが存在する不具合の修正
Browse files Browse the repository at this point in the history
close #84
  • Loading branch information
pandrabox committed Sep 28, 2024
1 parent a090fdc commit 2a71f83
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Editor/ExpressionCreater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private void CreateFoldedMenu(Transform currentTrans, Transform currentFolder)
{

var emoteFolder = currentTrans.GetComponent<EmoteFolder>();
if (emoteFolder!=null)
if (emoteFolder!=null && emoteFolder.gameObject.activeInHierarchy)
{
currentFolder = CreateSubFolder(currentFolder, emoteFolder);
}
Expand Down Expand Up @@ -187,8 +187,7 @@ private void PackFolder(EmoteMenuInfo parent)
{
if (parent.AutoFolderMode == EmoteMenuInfo.AutoFolderModeType.none) return;
if (parent.transform.childCount < 16) return;
//int folderNum = (int)Math.Ceiling((double)parent.transform.childCount / 8f);


int itemIndex = 0;
GameObject currentPack=null;
int itemNum = parent.transform.childCount;
Expand Down

0 comments on commit 2a71f83

Please sign in to comment.