From 8e2e5d7b6a2b08426f35144a46c81dddc2735534 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Mon, 29 Oct 2018 11:06:14 +0100 Subject: [PATCH] Sketcher: Made constraints aware of whether they are dimensionals or not ======================================================================== Centralise the knowledge on whether a constraint is dimensional or not within the constraint --- src/Mod/Sketcher/App/Constraint.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Sketcher/App/Constraint.h b/src/Mod/Sketcher/App/Constraint.h index dee3c09a7a..b74ba35811 100644 --- a/src/Mod/Sketcher/App/Constraint.h +++ b/src/Mod/Sketcher/App/Constraint.h @@ -104,6 +104,9 @@ public: inline double getValue() const { return Value; } + + inline bool isDimensional() const { return Type == Distance || Type == DistanceX || Type == DistanceY || + Type == Radius || Type == Diameter || Type == Angle || Type == SnellsLaw;} friend class PropertyConstraintList;