From 4bbc7ea78646071fc4dca0c699934b95da0f0700 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 15 Jun 2018 16:09:45 +0200 Subject: [PATCH] Sketcher: New Sketcher Constraint Diameter --- src/Mod/Sketcher/App/Constraint.cpp | 1 + src/Mod/Sketcher/App/Constraint.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Mod/Sketcher/App/Constraint.cpp b/src/Mod/Sketcher/App/Constraint.cpp index c16531e35d31..02b798b3fbe4 100644 --- a/src/Mod/Sketcher/App/Constraint.cpp +++ b/src/Mod/Sketcher/App/Constraint.cpp @@ -136,6 +136,7 @@ Quantity Constraint::getPresentationValue() const switch (Type) { case Distance: case Radius: + case Diameter: case DistanceX: case DistanceY: quantity.setValue(Value); diff --git a/src/Mod/Sketcher/App/Constraint.h b/src/Mod/Sketcher/App/Constraint.h index 0c888e6ba8e9..dee3c09a7af1 100644 --- a/src/Mod/Sketcher/App/Constraint.h +++ b/src/Mod/Sketcher/App/Constraint.h @@ -56,6 +56,7 @@ enum ConstraintType { InternalAlignment = 15, SnellsLaw = 16, Block = 17, + Diameter = 18, NumConstraintTypes // must be the last item! };