loodakrawa / SpriterDotNet

A pure C# Spriter implementation
zlib License
220 stars 75 forks source link

Resolve "Fix infinite recursion when using cyclic character map" #113

Closed rfadeev closed 3 years ago

rfadeev commented 4 years ago

Please refer to #112 description for issue details and reproduction steps to verify the fix.

Since DefaultAssetProvider.Get method called itself recursively, character map like:

would result in infinite recursion when such character map is applied and entity is animated. Use DefaultAssetProvider.GetAsset instead as CharMapValues dictionary contains final data for swapped asset.

Closes #112