diff options
author | Joshua Leung <aligorith@gmail.com> | 2013-11-05 06:01:39 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2013-11-05 06:01:39 +0400 |
commit | bf04c76ab5ca44ac5d2b191fa7a8b414fcc197b4 (patch) | |
tree | 6f14c367bca9738dd4239b70e98902bbbdb123af | |
parent | 7a10bacaf9261d39e6bd1f244e4b8fc1eb99d8ea (diff) |
Bugfix [#37168] Outliner refresh error after removing constraints
Clear constraints operators were missing the NA_REMOVED flag which the Outliner
was checking for before it would perform the necessary updates.
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index 8af9401e30f..d4fac49e973 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -1331,7 +1331,7 @@ static int pose_constraints_clear_exec(bContext *C, wmOperator *UNUSED(op)) /* do updates */ DAG_id_tag_update(&ob->id, OB_RECALC_DATA); - WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT, ob); + WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT | NA_REMOVED, ob); return OPERATOR_FINISHED; } @@ -1365,7 +1365,7 @@ static int object_constraints_clear_exec(bContext *C, wmOperator *UNUSED(op)) DAG_relations_tag_update(bmain); /* do updates */ - WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT, NULL); + WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT | NA_REMOVED, NULL); return OPERATOR_FINISHED; } |