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

Transform Improvements (Keyframe origin point) #496

Merged
merged 1 commit into from May 25, 2020
Merged

Transform Improvements (Keyframe origin point) #496

merged 1 commit into from May 25, 2020

Conversation

jonoomph
Copy link
Member

@jonoomph jonoomph commented Apr 13, 2020

Adding keyframable origin point (for shear and rotation). Used in OpenShot/openshot-qt#3366. Both rotation and shear use an origin point to control how those tools work. This allows the user to not only set a custom origin point (as a % of the original clip), but it allows the origin to be animated, which allows for some really great animations!

origin_x: 0.0 = left side of clip
origin_x: 1.0 = right side of clip

origin_y: 0.0 = top side of clip
origin_y: 1.0 = bottom side of clip

@codecov-io
Copy link

Codecov Report

Merging #496 into develop will increase coverage by 0.00%.
The diff coverage is 40.90%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #496   +/-   ##
========================================
  Coverage    48.24%   48.24%           
========================================
  Files          128      128           
  Lines         9962     9972   +10     
========================================
+ Hits          4806     4811    +5     
- Misses        5156     5161    +5     
Impacted Files Coverage Δ
include/Clip.h 88.88% <ø> (ø)
src/Clip.cpp 39.45% <40.00%> (+0.01%) ⬆️
src/Timeline.cpp 38.65% <41.66%> (+0.13%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 166f693...2bea436. Read the comment docs.

transform.translate(x, y);
transformed = true;
}
if (!isEqual(r, 0) || !isEqual(shear_x, 0) || !isEqual(shear_y, 0)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This code has related issue: OpenShot/openshot-qt#2794

@jonoomph jonoomph merged commit 10ed4ba into develop May 25, 2020
@jonoomph jonoomph deleted the emojis branch August 17, 2020 19:11
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.

None yet

3 participants