improved text effect and gizmo hand bug

This commit is contained in:
itsmattkc
2019-01-17 12:27:09 +11:00
parent 45b31a49e1
commit 0005f592b1
3 changed files with 33 additions and 26 deletions
+6 -1
View File
@@ -366,7 +366,12 @@ void ViewerWidget::mouseMoveEvent(QMouseEvent* event) {
}
void ViewerWidget::mouseReleaseEvent(QMouseEvent *event) {
if (dragging) move_gizmos(event, true);
if (event->button() == Qt::MiddleButton || panel_timeline->tool == TIMELINE_TOOL_HAND) {
qDebug() << "hand";
} else if (dragging && gizmos != nullptr) {
qDebug() << "gizmos";
move_gizmos(event, true);
}
dragging = false;
}