PartDesign: Correct typo in multiple solids error (#23642)
* PartDesign: Update FeatureFillet.cpp * PartDesign: Update FeaturePipe.cpp * PartDesign: Update FeatureLoft.cpp * PartDesign: Update FeatureExtrude.cpp * PartDesign: Update FeatureGroove.cpp * PartDesign: Update FeatureBoolean.cpp * PartDesign: Update FeatureChamfer.cpp * PartDesign: Update FeatureHole.cpp * PartDesign: Update FeatureDraft.cpp * PartDesign: Update FeatureRevolution.cpp * PartDesign: Remove empty lines added by GitHub editor * PartDesign: Remove empty lines added by GitHub editor * PartDesign: Remove empty lines added by GitHub editor * PartDesign: Remove empty lines added by GitHub editor * PartDesign: Remove empty lines added by GitHub editor * PartDesign: Remove empty lines added by GitHub editor * PartDesign: Remove empty lines added by GitHub editor * PartDesign: Remove empty lines added by GitHub editor * PartDesign: Remove empty lines added by GitHub editor
This commit is contained in:
@@ -160,7 +160,7 @@ App::DocumentObjectExecReturn *Boolean::execute()
|
||||
result = refineShapeIfActive(result);
|
||||
|
||||
if (!isSingleSolidRuleSatisfied(result.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
|
||||
this->Shape.setValue(getSolid(result));
|
||||
@@ -221,4 +221,3 @@ void Boolean::handleChangedPropertyName(Base::XMLReader &reader, const char * Ty
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ App::DocumentObjectExecReturn *Chamfer::execute()
|
||||
this->rawShape = shape;
|
||||
shape = refineShapeIfActive(shape);
|
||||
if (!isSingleSolidRuleSatisfied(shape.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
|
||||
shape = getSolid(shape);
|
||||
@@ -260,3 +260,4 @@ static App::DocumentObjectExecReturn *validateParameters(int chamferType, double
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -288,7 +288,7 @@ App::DocumentObjectExecReturn *Draft::execute()
|
||||
}
|
||||
|
||||
if (!isSingleSolidRuleSatisfied(shape.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
|
||||
this->Shape.setValue(getSolid(shape));
|
||||
|
||||
@@ -573,7 +573,7 @@ App::DocumentObjectExecReturn* FeatureExtrude::buildExtrusion(ExtrudeOptions opt
|
||||
solRes = refineShapeIfActive(result);
|
||||
|
||||
if (!isSingleSolidRuleSatisfied(solRes.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
this->Shape.setValue(getSolid(solRes));
|
||||
}
|
||||
@@ -586,7 +586,7 @@ App::DocumentObjectExecReturn* FeatureExtrude::buildExtrusion(ExtrudeOptions opt
|
||||
this->rawShape = prism;
|
||||
prism = refineShapeIfActive(prism);
|
||||
if (!isSingleSolidRuleSatisfied(prism.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
prism = getSolid(prism);
|
||||
this->Shape.setValue(prism);
|
||||
@@ -596,7 +596,7 @@ App::DocumentObjectExecReturn* FeatureExtrude::buildExtrusion(ExtrudeOptions opt
|
||||
this->rawShape = prism;
|
||||
prism = refineShapeIfActive(prism);
|
||||
if (!isSingleSolidRuleSatisfied(prism.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
this->Shape.setValue(prism);
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ App::DocumentObjectExecReturn *Fillet::execute()
|
||||
this->rawShape = shape;
|
||||
shape = refineShapeIfActive(shape);
|
||||
if (!isSingleSolidRuleSatisfied(shape.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
|
||||
shape = getSolid(shape);
|
||||
|
||||
@@ -193,7 +193,7 @@ App::DocumentObjectExecReturn *Groove::execute()
|
||||
this->rawShape = boolOp;
|
||||
boolOp = refineShapeIfActive(boolOp);
|
||||
if (!isSingleSolidRuleSatisfied(boolOp.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
boolOp = getSolid(boolOp);
|
||||
Shape.setValue(boolOp);
|
||||
|
||||
@@ -2182,7 +2182,7 @@ App::DocumentObjectExecReturn* Hole::execute()
|
||||
|
||||
if (!isSingleSolidRuleSatisfied(result.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(
|
||||
QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
this->Shape.setValue(result);
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ App::DocumentObjectExecReturn *Loft::execute()
|
||||
|
||||
if(base.isNull()) {
|
||||
if (!isSingleSolidRuleSatisfied(result.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
Shape.setValue(getSolid(result));
|
||||
return App::DocumentObject::StdReturn;
|
||||
@@ -309,7 +309,7 @@ App::DocumentObjectExecReturn *Loft::execute()
|
||||
this->rawShape = boolOp;
|
||||
boolOp = refineShapeIfActive(boolOp);
|
||||
if (!isSingleSolidRuleSatisfied(boolOp.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
boolOp = getSolid(boolOp);
|
||||
Shape.setValue(boolOp);
|
||||
|
||||
@@ -402,7 +402,7 @@ App::DocumentObjectExecReturn *Pipe::execute()
|
||||
|
||||
if (!isSingleSolidRuleSatisfied(boolOp.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception",
|
||||
"Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
"Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
|
||||
// store shape before refinement
|
||||
@@ -423,7 +423,7 @@ App::DocumentObjectExecReturn *Pipe::execute()
|
||||
|
||||
if (!isSingleSolidRuleSatisfied(boolOp.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception",
|
||||
"Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
"Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
|
||||
// store shape before refinement
|
||||
|
||||
@@ -230,7 +230,7 @@ App::DocumentObjectExecReturn* Revolution::execute()
|
||||
result = refineShapeIfActive(result);
|
||||
}
|
||||
if (!isSingleSolidRuleSatisfied(result.getShape())) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compounds' in the active body."));
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Result has multiple solids: enable 'Allow Compound' in the active body."));
|
||||
}
|
||||
result = getSolid(result);
|
||||
this->Shape.setValue(result);
|
||||
|
||||
Reference in New Issue
Block a user