-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add control to play specific sequence-variations. #15
Conversation
I guess there are some things you could argue about, for example I chose to disable the variation-control when only one variation exists. This makes it clear to the user that the concept of different variations exists, but not for this specific sequence. But you could find arguments for hiding the variation-control as well, so feel free to veto my decision ^^ |
Refactor.
Refactor.
Slightly updated the code but I think this should be okay now! I like the idea of enabling/disabling multiple variations depending on availability. Since there is in M2 terms always a |
|
||
// TODO: Add support for sequences with external animation data (.anim files) | ||
|
||
console.warn( 'THREE.M2Loader: Sequences with external animation data not yet supported.' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For simplicity, I have moved the M2_SEQUENCE_EMBEDDED_DATA
check to playSequence()
. Meaning the manager now reports all sequences and variations again but warns the users if animation data are not available.
Looks good, but two thoughts:
|
The default variation index should always be 0. So I guess this is safe.
That would be indeed good! I've missed the alpha-numerically thing. |
Actually I have fixed it in a7b4c20 now since I need this for testing 😅 . |
Oh, okay. Sorry I didn't get to it earlier :/ |
The version of lil-gui in three/addons is too outdated. It is 0.17.0, but at least 0.19.0 is needed to allow for updating the options of a drop-down (georgealways/lil-gui#86).