Better implementation of the AnimationMask interface
- Homogeneous signature of methods.
- Possibility of chaining methods.
- The 'Armature' is passed only once in the constructor.
- 'Joints' are passed to methods as strings instead of objects.
Any feedback on this proposal? Can it be useful or should I close it?
I think it's worth considering, but my attention has been elsewhere, so I haven't reviewed this in depth. If someone else could review it, that would be great.
I am in doubt if we should add this to the engine or not. And if it will be confusing to have two identical implementations one keeps the Armature instance (AvatarMask) and one does not (ArmatureMask).
I prefer core members decide about this and if they are positive about this addition then I can continue reviewing the code.
I agree with you Ali, two identical implementations in core package, would just mess up. The AnimationMask interface gives programmers the freedom to write their own functionality and that's perfectly fine. If there is nothing else to discuss, I plan to close this PR within 24 hours.