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

fix: revealer animation folding #119

Merged
merged 2 commits into from
Jan 5, 2022

Conversation

allkhor
Copy link
Contributor

@allkhor allkhor commented Jan 5, 2022

Please check if the PR fulfills these requirements:

  • The commit message follows our guidelines.
  • For bug fixes and features:
    • You tested the changes.

Related issue (if applicable): #
#104

Also fix folding if animation disabled.

Comment on lines 144 to 145
func _animate_height(property: String, from: float) -> void:
_tween.interpolate_property(self, property, from, _height, ANIM_DURATION)
Copy link
Contributor

Choose a reason for hiding this comment

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

I´d rather not have functions with only one instruction. Here, it mostly requires you to jump somewhere else in the file to understand how the code works - you're not reusing enough code to justify the indirection. I'll change this and merge shortly.

@NathanLovato NathanLovato linked an issue Jan 5, 2022 that may be closed by this pull request
@NathanLovato NathanLovato merged commit b86d4ca into GDQuest:main Jan 5, 2022
@NathanLovato
Copy link
Contributor

Thanks, that's a great fix!

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.

Hint not folding, only the hint text is hidden
2 participants