This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not reserve motion objects multiple times in macro
Calling `Macro.getMotion()` for the same moveables multiple times in a macro creates a new object at every call and reserves each of them. When such macro gets stopped, each of these `Motion` objects gets stopped and the same moveables gets stopped multiple times. Fix it by implementing equality check (`__eq__()`) in the `Motion` class what avoids reserving different `Motion` objects pointing to the same moveables multiple times.
- Loading branch information