Toponaming/Part: Clean and add tests
This commit is contained in:
@@ -273,10 +273,18 @@ App::DocumentObjectExecReturn *Transformed::execute()
|
||||
if (fuseShape.isNull() && cutShape.isNull())
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Shape of additive/subtractive feature is empty"));
|
||||
gp_Trsf trsf = feature->getLocation().Transformation().Multiplied(trsfInv);
|
||||
#ifdef FC_USE_TNP_FIX
|
||||
if (!fuseShape.isNull())
|
||||
fuseShape = fuseShape.makeElementTransform(trsf);
|
||||
if (!cutShape.isNull())
|
||||
cutShape = cutShape.makeElementTransform(trsf);
|
||||
#else
|
||||
if (!fuseShape.isNull())
|
||||
fuseShape = fuseShape.makeTransform(trsf);
|
||||
if (!cutShape.isNull())
|
||||
cutShape = cutShape.makeTransform(trsf);
|
||||
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Only additive and subtractive features can be transformed"));
|
||||
|
||||
Reference in New Issue
Block a user