exdev / ex2d

Documentation, runtime scripts and others of ex2D
www.ex-dev.com/ex2d
43 stars 9 forks source link

tiny bug in exSpriteAnimation.AddAnimation() #28

Closed Fove closed 11 years ago

Fove commented 12 years ago

After I append clips like below [code] foreach (exSpriteAnimClip c in exClips) { sp.spanim.AddAnimation(c); } [/code] animation doesn't show up in running mode,except I open Inspector of that gameObject,and open exSpriteAnimation component node,the animation appeared.

so I try to add this code after add all animations: [code] print(sp.spanim.animations.Count + ":" + sp.spanim.animation); [/code] then all of them worked correctly.

Fove commented 12 years ago

the print code doesn't work

Fove commented 12 years ago

I found the key,if there is no image selected in exSprite,all add animation clip operations will not work,I must drag a image,even a unrelated image is fine.

jwu commented 12 years ago

Well, yes. In current version it looks like exSprite needs an image keep there for working correctly. Because no image no mesh generated.

But I think the problem will be solve in ex2D v2

jwu commented 11 years ago

Fixed in ex2D v2.0 (coming soon)