[Path] remove a unnecessary Boolean comparison

This commit is contained in:
Uwe
2022-06-19 18:32:54 +02:00
parent 5f50d1e588
commit 8a9c0801c7

View File

@@ -58,7 +58,7 @@ App::DocumentObjectExecReturn *FeatureCompound::execute(void)
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) {
if (UsePlacements.getValue() == true) {
if (UsePlacements.getValue()) {
result.addCommand((*it2)->transform(pl));
} else {
result.addCommand(**it2);