Skip to content

Commit

Permalink
Hide cut face and deform options for non-model parts
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Jan 19, 2023
1 parent 85c2d80 commit d9babba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/sources/component_property_widget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ ComponentPropertyWidget::ComponentPropertyWidget(Document* document,
topLayout->setSizeConstraint(QLayout::SetFixedSize);

QGroupBox* deformGroupBox = nullptr;
if (nullptr != m_part) {
if (nullptr != m_part && dust3d::PartTarget::Model == m_part->target) {
FloatNumberWidget* thicknessWidget = new FloatNumberWidget;
thicknessWidget->setItemName(tr("Thickness"));
thicknessWidget->setRange(0, 2);
Expand Down Expand Up @@ -145,7 +145,7 @@ ComponentPropertyWidget::ComponentPropertyWidget(Document* document,
}

QGroupBox* cutFaceGroupBox = nullptr;
if (nullptr != m_part) {
if (nullptr != m_part && dust3d::PartTarget::Model == m_part->target) {
FlowLayout* cutFaceIconLayout = new FlowLayout(nullptr, 0, 0);
m_document->collectCutFaceList(m_cutFaceList);
m_cutFaceButtons.resize(m_cutFaceList.size());
Expand Down

0 comments on commit d9babba

Please sign in to comment.