Skip to content
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

Task/fix boy animation #512

Merged
merged 4 commits into from
Dec 20, 2018
Merged

Task/fix boy animation #512

merged 4 commits into from
Dec 20, 2018

Conversation

f3dm76
Copy link
Collaborator

@f3dm76 f3dm76 commented Dec 17, 2018

No description provided.

Source/animation/types/CombineAnimation.swift Outdated Show resolved Hide resolved
@@ -7,7 +7,9 @@
//

class ShapeAnimation: AnimationImpl<Shape> {
convenience init(animatedNode: Shape, finalValue: Shape, animationDuration: Double, delay: Double = 0.0, autostart: Bool = false, fps: UInt = 30) {
let toParentGlobalTransfrom: Transform?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again no need to use optional property when you have great default value and it's actually used everywhere.

Source/render/NodeRenderer.swift Outdated Show resolved Hide resolved
@ystrot ystrot added this to the 0.9.4 milestone Dec 19, 2018
let fromPos = parentPos.concat(with: to.place)
let toPos = parentPos.concat(with: to.place)
let fromPos = parentPos.concat(with: from.place)
let toParentPos = animation.toParentGlobalTransfrom ?? parentPos
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still valid? Looks like ?? can be avoided.

@f3dm76 f3dm76 force-pushed the task/fix-boy-animation branch from 8561348 to b4510d3 Compare December 20, 2018 06:56
Extra optional

Fix
@ystrot ystrot self-assigned this Dec 20, 2018
@ystrot ystrot merged commit 42be7d1 into exyte:master Dec 20, 2018
@f3dm76 f3dm76 deleted the task/fix-boy-animation branch February 6, 2019 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants