Skip to content

Commit

Permalink
Fix a crash after creating a constraint.
Browse files Browse the repository at this point in the history
To reproduce, e.g.:
  * draw a rect;
  * translate the rect;
  * add a pt-on-line constraint between two instances.
  • Loading branch information
Evil-Spirit authored and whitequark committed Jan 16, 2017
1 parent fbb4d2f commit 0f3dc75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/constraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ hConstraint Constraint::AddConstraint(Constraint *c, bool rememberForUndo) {
if(rememberForUndo) SS.UndoRemember();

SK.constraint.AddAndAssignId(c);
c->Generate(&SK.param);

SS.MarkGroupDirty(c->group);
SK.GetGroup(c->group)->dofCheckOk = false;
Expand Down

0 comments on commit 0f3dc75

Please sign in to comment.