Code Monkey home page Code Monkey logo

spine-json-lib's People

Contributors

actions-user avatar ivan-ah avatar jesdi avatar sp-ivan-alcoceba avatar sp-jesus-diaz avatar sp-jordi-miro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jesdi ivan-ah

spine-json-lib's Issues

Draw orders need to be updated when removing slots

Sometimes after removing certain slots the animation gets corrupted.

After some research we found out that the offset of a symbol in a modified draw order data inside an animation is not being modified in certain cases.

The offset of a draw order data:

  • indicate the change of the order for that symbol.
  • it's positive means the symbol is going to be painted "later" and if it is negative means the symbol is going to be painted "earlier".
  • looks like it's always calculated based on the default drawOrder, even if it is modified few times along the timeline of an animation.

Taking that into account that, sometimes when removing slots it can lead to having the json of the animation corrupt. Because we are not updating the modified offsets in certain cases, this are the conditions that need to be true for us to update the draworder offset information:

  • An animation is modifying the default draw order(which is the inverse of the list of slots) of one of the remaining animations.
  • If the position of the removed slot affects the re-sorted slots in the custom draw order we have to update them potentially decreasing in 1 if it's necessary

Problem with the release Github workflow order

  • spine-json-lib version:
  • Python version:
  • Operating System:

Description

The Github Workflow order does not guarantee a broken version to be published to Pypi.

What I Did

When a PR is merged, the workflows for Test and Release are run with the PR changes merged into the master branch.

But they are ran in parallel so in the case of the Tests workflow failing in the master branch, the package would still be published.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.