[PD] code improvement for FeaturePad

as noted by @chennes in PR #5164, we should follow the C++ style guidelines:
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-if
This commit is contained in:
Uwe
2021-11-11 02:26:42 +01:00
parent aa0f0cd3bb
commit 7353ec0096

View File

@@ -147,7 +147,7 @@ App::DocumentObjectExecReturn *Pad::execute(void)
Base::Vector3d paddingDirection;
if (!UseCustomVector.getValue()) {
if (ReferenceAxis.getValue() == nullptr) {
if (!ReferenceAxis.getValue()) {
// use sketch's normal vector for direction
paddingDirection = SketchVector;
AlongSketchNormal.setReadOnly(true);