Fix: 场景渲染画面不动

main
wuyize 2023-10-25 17:09:42 +08:00
parent 71588dc72c
commit 20114158be
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#include "RendererGLWidget.h" #include "RendererGLWidget.h"
#include "../FluentMenu.h" #include "../FluentMenu.h"
#include <QFileDialog> #include <QFileDialog>
#include <QStackedwidget>
Renderer::RendererWidget::RendererWidget(QWidget* parent) Renderer::RendererWidget::RendererWidget(QWidget* parent)
: QWidget(parent) : QWidget(parent)
@ -85,7 +86,7 @@ Renderer::RendererWidget::~RendererWidget()
void Renderer::RendererWidget::currentTabChanged(int index) void Renderer::RendererWidget::currentTabChanged(int index)
{ {
if (index == 1) if (qobject_cast<QStackedWidget*>(sender())->currentWidget() == this)
{ {
ui.openGLWidget->startTimer(); ui.openGLWidget->startTimer();
} }