-
Notifications
You must be signed in to change notification settings - Fork 398
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 method to transform a Transformable to a point in time #1142
Conversation
/// Whether a parent is allowed to clear this <see cref="Transformable"/>'s <see cref="Transform"/>s | ||
/// through <see cref="ClearTransforms(bool, string)"/> and <see cref="ClearTransformsAfter(double, bool)"/>. | ||
/// </summary> | ||
protected internal virtual bool AllowTransformClearByParent => true; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
if (c.AllowTransformClearByParent) | ||
continue; | ||
c.ClearTransforms(true, targetMember); | ||
} |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
if (transforms[i].StartTime < time) | ||
break; | ||
transforms.RemoveAt(i); | ||
} |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
/// </summary> | ||
/// <param name="time">The time to clear <see cref="Transform"/>s after.</param> | ||
/// <param name="propagateChildren">Whether to also clear such <see cref="Transform"/>s of children.</param> | ||
public virtual void ClearTransformsAfter(double time, bool propagateChildren = false) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
} | ||
} | ||
|
||
public override void TransformStateTo(double time, bool propagateChildren = false) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
} | ||
|
||
public override void TransformStateTo(double time, bool propagateChildren = false) | ||
{ |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
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.
See individual comments.
As discussed in #osu-client.