Fix automatic marking of constraints as reference.
To reproduce: * New sketch; * Create two redundant constraints, with second being automatically marked as reference; * Switch one of these to non-reference; * Allow redundant constraints; * All new constraints with labels created as reference, even if that specific degree of freedom is not constrained yet.pull/238/head
parent
43dc16262a
commit
c0b6eaa935
|
@ -737,7 +737,8 @@ void Constraint::MenuConstrain(Command id) {
|
|||
if(SK.constraint.FindByIdNoOops(c.h)) {
|
||||
Constraint *constraint = SK.GetConstraint(c.h);
|
||||
if(SS.TestRankForGroup(c.group) == SolveResult::REDUNDANT_OKAY &&
|
||||
constraint->HasLabel()) {
|
||||
!SK.GetGroup(SS.GW.activeGroup)->allowRedundant &&
|
||||
constraint->HasLabel()) {
|
||||
constraint->reference = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue