All: Reformat according to new standard

This commit is contained in:
pre-commit-ci[bot]
2025-11-11 13:49:01 +01:00
committed by Kacper Donat
parent eafd18dac0
commit 25c3ba7338
2390 changed files with 154630 additions and 115818 deletions

View File

@@ -36,11 +36,13 @@ PROPERTY_SOURCE(Path::FeatureCompound, Path::Feature)
FeatureCompound::FeatureCompound()
{
ADD_PROPERTY_TYPE(Group, (nullptr), "Base", Prop_None, "Ordered list of paths to combine");
ADD_PROPERTY_TYPE(UsePlacements,
(false),
"Base",
Prop_None,
"Specifies if the placements of children must be computed");
ADD_PROPERTY_TYPE(
UsePlacements,
(false),
"Base",
Prop_None,
"Specifies if the placements of children must be computed"
);
}
FeatureCompound::~FeatureCompound()
@@ -53,11 +55,10 @@ App::DocumentObjectExecReturn* FeatureCompound::execute()
for (std::vector<DocumentObject*>::const_iterator it = Paths.begin(); it != Paths.end(); ++it) {
if ((*it)->isDerivedFrom<Path::Feature>()) {
const std::vector<Command*>& cmds =
static_cast<Path::Feature*>(*it)->Path.getValue().getCommands();
const std::vector<Command*>& cmds
= static_cast<Path::Feature*>(*it)->Path.getValue().getCommands();
const Base::Placement pl = static_cast<Path::Feature*>(*it)->Placement.getValue();
for (std::vector<Command*>::const_iterator it2 = cmds.begin(); it2 != cmds.end();
++it2) {
for (std::vector<Command*>::const_iterator it2 = cmds.begin(); it2 != cmds.end(); ++it2) {
if (UsePlacements.getValue()) {
result.addCommand((*it2)->transform(pl));
}