From ca0e18f88b7628a44251761bc5b012ebd7bd19f7 Mon Sep 17 00:00:00 2001 From: Sergej Reich Date: Tue, 12 Feb 2013 14:45:55 +0000 Subject: rigidbody: Clean up wm notifiers in rigid body operators Remore group notifiers, they're already sent by add/remove group operators. Add pointcache notifiers. Fixes UI not being updated properly in some cases. --- source/blender/editors/physics/rigidbody_constraint.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/blender/editors/physics/rigidbody_constraint.c') diff --git a/source/blender/editors/physics/rigidbody_constraint.c b/source/blender/editors/physics/rigidbody_constraint.c index b2f53379090..a72a409f277 100644 --- a/source/blender/editors/physics/rigidbody_constraint.c +++ b/source/blender/editors/physics/rigidbody_constraint.c @@ -133,7 +133,6 @@ static int rigidbody_con_add_exec(bContext *C, wmOperator *op) DAG_ids_flush_update(CTX_data_main(C), 0); WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL); - WM_event_add_notifier(C, NC_GROUP | NA_EDITED, NULL); /* done */ return OPERATOR_FINISHED; @@ -181,7 +180,6 @@ static int rigidbody_con_remove_exec(bContext *C, wmOperator *op) DAG_ids_flush_update(CTX_data_main(C), 0); WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL); - WM_event_add_notifier(C, NC_GROUP | NA_EDITED, NULL); /* done */ return OPERATOR_FINISHED; -- cgit v1.2.3