Skip to content

Conversation

@f3dm76
Copy link
Collaborator

@f3dm76 f3dm76 commented Dec 17, 2018

No description provided.


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.

@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