1. 修改了模型热重载部分逻辑,实现了真正的异步模型热重载
This commit is contained in:
@@ -239,10 +239,8 @@ void GLCore::setWindowSize(const int w, const int h)
|
||||
if (this->width() == w && this->height() == h) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 调用 QWidget::resize 或 setFixedSize 来改变窗口的实际尺寸
|
||||
setFixedSize(w, h);
|
||||
|
||||
// 调用 setFixedSize 会自动触发 QOpenGLWidget 的 resizeEvent,
|
||||
// 进而调用 resizeGL(w, h),无需手动调用 resizeGL
|
||||
}
|
||||
Reference in New Issue
Block a user