ISSUE #3100: Add support for different animations mode, reverse, ping pong, looping or not - #3385
ISSUE #3100: Add support for different animations mode, reverse, ping pong, looping or not#338512alkry45 wants to merge 8 commits into
Conversation
|
@12alkry45 please disclose AI usage in the PR description |
I only used Google (AI search) for internal/informational research. No code or PR text was generated by AI. Since I haven't completed the issue yet, I thought I'd check the box later, but, okay, it's indeed important, sorry) |
No worries, we are being swamped by ai PRs atm, so we are checking right away. |
4f4554c to
dd6eb26
Compare
|
\ci fast |
|
Hello, @mwestphal , could you please review the code before I add tests and update docs? might be I have missed smth |
|
❌ Invalid CI command "fast" |
|
Hello, @mwestphal , could you please review the code before I add tests and update docs? might be I have missed smth |
|
Sorry I missed this. Ill review. |
mwestphal
left a comment
There was a problem hiding this comment.
That looks great! please move forward with doc and tests :)
|
|
||
| ### `scene.animation.repeat` (_int_, default: `-1`) | ||
|
|
||
| Specifies the number of animation repeat cycles. A value of `-1` means unlimited, while any integer sets a specific number of repeats. |
There was a problem hiding this comment.
Hmm... maybe the animation shouldn't run at all, so we need to add an additional condition in code (we have one tick before stop now)
| }; | ||
| AnimationModeType AnimationMode = AnimationModeType::FORWARD; | ||
| int AnimationMaxRepeat = -1; | ||
| int AnimationModeDirection = 1; |
There was a problem hiding this comment.
Oops, you're right. That's a typo in the comment; it should be replaced with "Enum listing possible animation modes." The purpose of this code is to manage animation modes, repeat counts, and animation direction (depending on the mode).
| interactor_impl* Interactor = nullptr; | ||
|
|
||
| int AvailAnimations = 0; | ||
| int AnimationDirection = 1; |
There was a problem hiding this comment.
We can't remove this variable because the legacy code relies on it - for example, the logic for reversing the animation with hotkeys
There was a problem hiding this comment.
then both logic should be merged
mwestphal
left a comment
There was a problem hiding this comment.
you should replace the "animation direction" stuff I think.
|
Need any help moving forward @12alkry45 ? :) |
Hi. Yes, I've been quite busy lately. I replied above, maybe I'm missing something here... |
Describe your changes
Add --animation-mode and --animation-repeat CLI options. You can choose the mode of the animation: backward, forward or pingpong. Set the number of repeats to the animation.
Issue ticket number and link if any
ISSUE #3100: Add support for different animations mode, reverse, ping pong, looping or not
Checklist for finalizing the PR
.github/workflows/versions.json, I have updateddocker_timestampAI Disclosure
...
Continuous integration
Please write a comment to run CI, eg:
\ci fast.See here for more info.