Fix Xsheet ease handle position
This commit is contained in:
parent
30eddd26de
commit
532d68ba71
1 changed files with 8 additions and 8 deletions
|
@ -2433,18 +2433,18 @@ void CellArea::drawKeyframe(QPainter &p, const QRect toBeUpdated) {
|
|||
int handleRow0, handleRow1;
|
||||
if (getEaseHandles(segmentRow0, segmentRow1, ease0, ease1, handleRow0,
|
||||
handleRow1)) {
|
||||
QRect easeRect = tmpKeyRect;
|
||||
if (o->isVerticalTimeline()) easeRect.adjust(-2, 0, -2, 0);
|
||||
QPoint topLeft =
|
||||
m_viewer->positionToXY(CellPosition(handleRow0, col));
|
||||
m_viewer->drawPredefinedPath(
|
||||
p, PredefinedPath::BEGIN_EASE_TRIANGLE,
|
||||
tmpKeyRect.translated(topLeft).center(), keyFrameColor,
|
||||
outline);
|
||||
m_viewer->drawPredefinedPath(p, PredefinedPath::BEGIN_EASE_TRIANGLE,
|
||||
easeRect.translated(topLeft).center(),
|
||||
keyFrameColor, outline);
|
||||
|
||||
topLeft = m_viewer->positionToXY(CellPosition(handleRow1, col));
|
||||
m_viewer->drawPredefinedPath(
|
||||
p, PredefinedPath::END_EASE_TRIANGLE,
|
||||
tmpKeyRect.translated(topLeft).center(), keyFrameColor,
|
||||
outline);
|
||||
m_viewer->drawPredefinedPath(p, PredefinedPath::END_EASE_TRIANGLE,
|
||||
easeRect.translated(topLeft).center(),
|
||||
keyFrameColor, outline);
|
||||
}
|
||||
}
|
||||
// skip to next segment
|
||||
|
|
Loading…
Reference in a new issue