[Sketch] remove unnecessary Boolean comparisons
This commit is contained in:
@@ -1925,7 +1925,7 @@ int Sketch::addConstraints(const std::vector<Constraint *> &ConstraintList,
|
||||
|
||||
int cid = 0;
|
||||
for (std::vector<Constraint *>::const_iterator it = ConstraintList.begin();it!=ConstraintList.end();++it,++cid) {
|
||||
if (!unenforceableConstraints[cid] && (*it)->Type != Block && (*it)->isActive == true) {
|
||||
if (!unenforceableConstraints[cid] && (*it)->Type != Block && (*it)->isActive) {
|
||||
rtn = addConstraint (*it);
|
||||
|
||||
if(rtn == -1) {
|
||||
|
||||
Reference in New Issue
Block a user