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
+1 -1
View File
@@ -120,7 +120,7 @@ void RenderThread::paint() {
ctx->functions()->glBindFramebuffer(GL_READ_FRAMEBUFFER, frameBuffer);
QImage img(tex_width, tex_height, QImage::Format_RGBA8888);
glReadPixels(0, 0, tex_width, tex_height, GL_RGBA, GL_UNSIGNED_BYTE, img.bits());
img.mirrored(false, true).save(save_fn);
img.save(save_fn);
ctx->functions()->glBindFramebuffer(GL_READ_FRAMEBUFFER, 0);
save_fn = "";
}
+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;
}