diff --git a/src/documentwindow.cpp b/src/documentwindow.cpp index 24538960..f3075a45 100644 --- a/src/documentwindow.cpp +++ b/src/documentwindow.cpp @@ -42,7 +42,6 @@ #include "fbxfile.h" #include "shortcuts.h" #include "floatnumberwidget.h" -#include "cutfacelistwidget.h" #include "scriptwidget.h" #include "variablesxml.h" #include "updatescheckwidget.h" @@ -2183,7 +2182,7 @@ void DocumentWindow::showCutFaceSettingPopup(const QPoint &globalPos, std::set buttons; std::vector cutFaceList; - cutFaceLayout = new FlowLayout; + cutFaceLayout = new FlowLayout(nullptr, 0, 0); auto updateCutFaceButtonState = [&](size_t index) { for (size_t i = 0; i < cutFaceList.size(); ++i) { diff --git a/src/partwidget.cpp b/src/partwidget.cpp index d159eea9..35429e0f 100644 --- a/src/partwidget.cpp +++ b/src/partwidget.cpp @@ -21,7 +21,6 @@ #include "shortcuts.h" #include "graphicscontainerwidget.h" #include "flowlayout.h" -#include "cutfacelistwidget.h" #include "imageforever.h" #include "imagepreviewwidget.h" @@ -649,7 +648,7 @@ void PartWidget::showCutRotationSettingPopup(const QPoint &pos) std::vector cutFaceList; if (part->hasCutFaceFunction()) { - cutFaceLayout = new FlowLayout; + cutFaceLayout = new FlowLayout(nullptr, 0, 0); auto updateCutFaceButtonState = [&](size_t index) { for (size_t i = 0; i < cutFaceList.size(); ++i) {