Fix a crash when adding a symmetric constraint on two points.
The crash was introduced in e2e91672; I have not noticed that some of the code relies on past-the-size entities in GW.GS being empty.
This commit is contained in:
parent
b9d375652c
commit
ffd9c6241a
@ -370,6 +370,7 @@ void Constraint::MenuConstrain(Command id) {
|
|||||||
((gs.workplanes == 1 && gs.n == 3) ||
|
((gs.workplanes == 1 && gs.n == 3) ||
|
||||||
(gs.n == 2)))
|
(gs.n == 2)))
|
||||||
{
|
{
|
||||||
|
if(gs.entities > 0)
|
||||||
c.entityA = gs.entity[0];
|
c.entityA = gs.entity[0];
|
||||||
c.ptA = gs.point[0];
|
c.ptA = gs.point[0];
|
||||||
c.ptB = gs.point[1];
|
c.ptB = gs.point[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user