From 8a9c0801c74deaa22657887c15ffd933ff518c49 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 19 Jun 2022 18:32:54 +0200 Subject: [PATCH] [Path] remove a unnecessary Boolean comparison --- src/Mod/Path/App/FeaturePathCompound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/App/FeaturePathCompound.cpp b/src/Mod/Path/App/FeaturePathCompound.cpp index bb9f239abb..12719a738b 100644 --- a/src/Mod/Path/App/FeaturePathCompound.cpp +++ b/src/Mod/Path/App/FeaturePathCompound.cpp @@ -58,7 +58,7 @@ App::DocumentObjectExecReturn *FeatureCompound::execute(void) const std::vector &cmds = static_cast(*it)->Path.getValue().getCommands(); const Base::Placement pl = static_cast(*it)->Placement.getValue(); for (std::vector::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);