fix transforms from handler
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
#include "StyleManager.h"
|
||||
|
||||
MainPanel::MainPanel(QWidget* parent) : QWidget(parent), m_context(nullptr), m_mainVtkContext(nullptr) {
|
||||
this->setObjectName("MainPanel");
|
||||
this->setAttribute(Qt::WA_StyledBackground);
|
||||
auto* mainLayout = new QVBoxLayout(this);
|
||||
mainLayout->setContentsMargins(0, 0, 0, 0);
|
||||
mainLayout->setSpacing(0);
|
||||
@@ -158,7 +160,6 @@ void MainPanel::setContext(uLib::ObjectsContext* context) {
|
||||
}
|
||||
|
||||
uLib::Object::connect(context, &uLib::Object::Updated, [viewport]() {
|
||||
viewport->ZoomAuto();
|
||||
viewport->Render();
|
||||
});
|
||||
viewport->ZoomAuto();
|
||||
|
||||
Reference in New Issue
Block a user