[TechDraw] Simplify return logic
Normal warmup
This commit is contained in:
committed by
WandererFan
parent
6df0a20214
commit
a93060c6b9
@@ -1283,13 +1283,12 @@ void DrawViewPart::unsetupObject()
|
||||
//! is this an Isometric projection?
|
||||
bool DrawViewPart::isIso() const
|
||||
{
|
||||
bool result = false;
|
||||
Base::Vector3d dir = Direction.getValue();
|
||||
if (DrawUtil::fpCompare(fabs(dir.x), fabs(dir.y))
|
||||
&& DrawUtil::fpCompare(fabs(dir.x), fabs(dir.z))) {
|
||||
result = true;
|
||||
return true;
|
||||
}
|
||||
return result;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool DrawViewPart::checkXDirection() const
|
||||
|
||||
Reference in New Issue
Block a user