diff --git a/src/documentwindow.cpp b/src/documentwindow.cpp index 957234d0..171a39f9 100644 --- a/src/documentwindow.cpp +++ b/src/documentwindow.cpp @@ -973,6 +973,7 @@ DocumentWindow::DocumentWindow() : connect(m_document, &Document::partColorStateChanged, partTreeWidget, &PartTreeWidget::partColorStateChanged); connect(m_document, &Document::partCutRotationChanged, partTreeWidget, &PartTreeWidget::partCutRotationChanged); connect(m_document, &Document::partCutFaceChanged, partTreeWidget, &PartTreeWidget::partCutFaceChanged); + connect(m_document, &Document::partHollowThicknessChanged, partTreeWidget, &PartTreeWidget::partHollowThicknessChanged); connect(m_document, &Document::partMaterialIdChanged, partTreeWidget, &PartTreeWidget::partMaterialIdChanged); connect(m_document, &Document::partColorSolubilityChanged, partTreeWidget, &PartTreeWidget::partColorSolubilityChanged); connect(m_document, &Document::partRemoved, partTreeWidget, &PartTreeWidget::partRemoved); diff --git a/src/parttreewidget.cpp b/src/parttreewidget.cpp index 4bd8bbd1..f6f62a7f 100644 --- a/src/parttreewidget.cpp +++ b/src/parttreewidget.cpp @@ -992,6 +992,17 @@ void PartTreeWidget::partCutFaceChanged(QUuid partId) widget->updateCutRotationButton(); } +void PartTreeWidget::partHollowThicknessChanged(QUuid partId) +{ + auto item = m_partItemMap.find(partId); + if (item == m_partItemMap.end()) { + qDebug() << "Part item not found:" << partId; + return; + } + PartWidget *widget = (PartWidget *)itemWidget(item->second, 0); + widget->updateCutRotationButton(); +} + void PartTreeWidget::partMaterialIdChanged(QUuid partId) { auto item = m_partItemMap.find(partId); diff --git a/src/parttreewidget.h b/src/parttreewidget.h index e9c12f95..2feebb40 100644 --- a/src/parttreewidget.h +++ b/src/parttreewidget.h @@ -66,6 +66,7 @@ public slots: void partColorStateChanged(QUuid partId); void partCutRotationChanged(QUuid partId); void partCutFaceChanged(QUuid partId); + void partHollowThicknessChanged(QUuid partId); void partMaterialIdChanged(QUuid partId); void partColorSolubilityChanged(QUuid partId); void partChecked(QUuid partId); diff --git a/src/skeletondocument.h b/src/skeletondocument.h index a845c13e..60a65173 100644 --- a/src/skeletondocument.h +++ b/src/skeletondocument.h @@ -237,7 +237,7 @@ public: } bool cutAdjusted() const { - return cutRotationAdjusted() || cutFaceAdjusted(); + return cutRotationAdjusted() || cutFaceAdjusted() || hollowThicknessAdjusted(); } bool materialAdjusted() const {