Skip to content
Permalink
Browse files

+ fix constraint evaluation function

  • Loading branch information...
wwmayer committed Dec 29, 2014
1 parent 32dd867 commit d83c02387cfa7e5e34dfd1cd2515870554e31a34
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Mod/Sketcher/App/SketchObject.cpp
@@ -2174,7 +2174,7 @@ bool SketchObject::evaluateConstraint(const Constraint *constraint) const
case Vertical:
if (constraint->First < -extGeoCount || constraint->First >= intGeoCount)
return false;
if (constraint->SecondPos != Constraint::GeoUndef) {
if (constraint->Second != Constraint::GeoUndef) {
if (constraint->Second < -extGeoCount || constraint->Second >= intGeoCount)
return false;
}
@@ -2184,7 +2184,7 @@ bool SketchObject::evaluateConstraint(const Constraint *constraint) const
case DistanceY:
if (constraint->First < -extGeoCount || constraint->First >= intGeoCount)
return false;
if (constraint->SecondPos != none || constraint->Second != Constraint::GeoUndef) {
if (constraint->Second != Constraint::GeoUndef) {
if (constraint->Second < -extGeoCount || constraint->Second >= intGeoCount)
return false;
}
@@ -2211,7 +2211,7 @@ bool SketchObject::evaluateConstraint(const Constraint *constraint) const
case Angle:
if (constraint->First < -extGeoCount || constraint->First >= intGeoCount)
return false;
if (constraint->SecondPos != none || constraint->Second != Constraint::GeoUndef) {
if (constraint->Second != Constraint::GeoUndef) {
if (constraint->Second < -extGeoCount || constraint->Second >= intGeoCount)
return false;
}

0 comments on commit d83c023

Please sign in to comment.
You can’t perform that action at this time.