Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upfeat: Add stepping and exact input value control to animation system #569
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Rebased, ready now. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
torkleyy
Feb 12, 2018
Member
Reviewed 5 of 5 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.
amethyst_animation/src/resources.rs, line 328 at r1 (raw file):
/// Used when doing animation stepping (i.e only move forward/backward to discrete input values) #[derive(Clone, Debug)] pub enum StepDirection {
Can you make the repr to i8 and set Forward to +1 and Backward to -1? That might make the code above shorter.
Comments from Reviewable
|
Reviewed 5 of 5 files at r1. amethyst_animation/src/resources.rs, line 328 at r1 (raw file):
Can you make the Comments from Reviewable |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Rhuagh
Feb 12, 2018
Member
Review status: all files reviewed at latest revision, 1 unresolved discussion.
amethyst_animation/src/resources.rs, line 328 at r1 (raw file):
Previously, torkleyy (Thomas Schaller) wrote…
Can you make the
reprtoi8and setForwardto+1andBackwardto-1? That might make the code above shorter.
Not sure, still need to do edge case handling individually so the index don't overflow/underflow.
Comments from Reviewable
|
Review status: all files reviewed at latest revision, 1 unresolved discussion. amethyst_animation/src/resources.rs, line 328 at r1 (raw file): Previously, torkleyy (Thomas Schaller) wrote…
Not sure, still need to do edge case handling individually so the index don't overflow/underflow. Comments from Reviewable |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Rhuagh
Feb 12, 2018
Member
Review status: all files reviewed at latest revision, 1 unresolved discussion.
amethyst_animation/src/resources.rs, line 328 at r1 (raw file):
Previously, Rhuagh (Simon Rönnberg) wrote…
Not sure, still need to do edge case handling individually so the index don't overflow/underflow.
It would remove one line, that's about it.
Comments from Reviewable
|
Review status: all files reviewed at latest revision, 1 unresolved discussion. amethyst_animation/src/resources.rs, line 328 at r1 (raw file): Previously, Rhuagh (Simon Rönnberg) wrote…
It would remove one line, that's about it. Comments from Reviewable |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
torkleyy
Feb 13, 2018
Member
Review status:
all files reviewed at latest revision, all discussions resolved, all commit checks successful.
Comments from Reviewable
|
Review status: Comments from Reviewable |
Rhuagh commentedFeb 11, 2018
•
edited by torkleyy
Edited 1 time
-
torkleyy
edited Feb 11, 2018 (most recent)
Needs rebase when #567 is merged.
This change is