SpriteStudio / SS5PlayerForUnity

OPTPiX SpriteStudio 5 Player for Unity
http://www.webtech.co.jp/spritestudio/
MIT License
39 stars 15 forks source link

v1.3.10でのラベルを使用した範囲再生について #175

Open ghost opened 8 years ago

ghost commented 8 years ago

Library_SpriteStudio.cs 477行目付近の判定が邪魔をして再生できなくなっているようです。 確認を宜しくお願い致します。


        public int FrameNoGetLabel(int Index)
        {

            if((int)Library_SpriteStudio.KindLabelAnimationReserved.INDEX_RESERVED <= Index)
            {   /* Reserved-Index */
                Index -= (int)Library_SpriteStudio.KindLabelAnimationReserved.INDEX_RESERVED;
                switch(Index)
                {
                    case (int)Library_SpriteStudio.KindLabelAnimationReserved.START:
                        return(0);

                    case (int)Library_SpriteStudio.KindLabelAnimationReserved.END:
                        return(CountFrame - 1);

                    default:
                        break;
                }
                return(-1);
            }

            // !!!: ここです。
            if((0 <= Index) && (ListLabel.Length > Index))
            {
                return(-1);
            }

            Label DataLabel = DataGetLabel(Index);
            if(null == DataLabel)
            {
                return(-1);
            }
            return(DataLabel.FrameNo);
        }

MasamiYitsuse commented 8 years ago

rfukuma様

お世話になっております。 レポート及びバグ発生点について、ありがとうございます。 上記バグを修正したものをVer.1.3.11として、Developブランチにアップいたしました。

原因としては、レポート頂いた箇所の条件式が逆になっておりました(条件式が正常判定しているに関わらず、それをエラーと返しておりました)。

お忙しい中お手数ですが、何卒ご検証の程お願い申し上げます。

ghost commented 8 years ago

MasamiYitsuse様

お世話になっております。 修正の確認が取れましたので報告とさせていただきます。 夜間にも関わらず迅速な対応、誠にありがとうございました。