Skip to content

Commit

Permalink
PartDesign: fix dressup AddSubShape transformation
Browse files Browse the repository at this point in the history
AddSubShape must not have local transformation.
  • Loading branch information
realthunder authored and wwmayer committed Mar 20, 2020
1 parent dd794a9 commit 974267b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Mod/PartDesign/App/FeatureDressUp.cpp
Expand Up @@ -191,19 +191,23 @@ void DressUp::onChanged(const App::Property* prop)
s = getBaseShape();
else
s = Shape.getShape();
s.setPlacement(Base::Placement());
} else if (!SupportTransform.getValue()) {
addSubType = base->getAddSubType();
s = base->AddSubShape.getShape();
} else {
addSubType = base->getAddSubType();
Part::TopoShape baseShape = base->getBaseTopoShape(true);
baseShape.setPlacement(Base::Placement());
Part::TopoShape shape = Shape.getShape();
shape.setPlacement(Base::Placement());
if (baseShape.isNull() || !baseShape.hasSubShape(TopAbs_SOLID)) {
s = Shape.getShape();
s = shape;
addSubType = Additive;
} else if (addSubType == Additive)
s = Shape.getShape().cut(baseShape.getShape());
s = shape.cut(baseShape.getShape());
else
s = baseShape.cut(Shape.getValue());
s = baseShape.cut(shape.getShape());
}
AddSubShape.setValue(s);
}
Expand Down

0 comments on commit 974267b

Please sign in to comment.