Gui: force a redraw of the 3d view when creating it as otherwise on some systems the bottom and right side of the main window becomes black

This commit is contained in:
wmayer
2023-04-28 10:40:13 +02:00
committed by wwmayer
parent b028bb1696
commit 4d076a7056

View File

@@ -1775,7 +1775,6 @@ MDIView *Document::createView(const Base::Type& typeId)
view3D->setWindowModified(this->isModified());
view3D->setWindowIcon(QApplication::windowIcon());
view3D->resize(400, 300);
view3D->getViewer()->redraw();
if (!cameraSettings.empty()) {
const char *ppReturn = nullptr;
@@ -1783,6 +1782,7 @@ MDIView *Document::createView(const Base::Type& typeId)
}
getMainWindow()->addWindow(view3D);
view3D->getViewer()->redraw();
return view3D;
}
return nullptr;