From d6d82a95f5829b71c78e53ebef538b822a1c0248 Mon Sep 17 00:00:00 2001 From: Sergej Reich Date: Fri, 17 May 2013 18:34:13 +0000 Subject: rigidbody: Add missig notifiers for add/remove operators Fixes [#35403] Highlight not updating instantly when removing from Rigid body --- source/blender/editors/physics/rigidbody_object.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/physics/rigidbody_object.c') diff --git a/source/blender/editors/physics/rigidbody_object.c b/source/blender/editors/physics/rigidbody_object.c index 7761ab0a42d..00304090818 100644 --- a/source/blender/editors/physics/rigidbody_object.c +++ b/source/blender/editors/physics/rigidbody_object.c @@ -153,6 +153,7 @@ static int rigidbody_object_add_exec(bContext *C, wmOperator *op) if (change) { /* send updates */ WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL); + WM_event_add_notifier(C, NC_OBJECT | ND_POINTCACHE, NULL); /* done */ return OPERATOR_FINISHED; @@ -197,6 +198,7 @@ static int rigidbody_object_remove_exec(bContext *C, wmOperator *op) if (change) { /* send updates */ WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL); + WM_event_add_notifier(C, NC_OBJECT | ND_POINTCACHE, NULL); /* done */ return OPERATOR_FINISHED; @@ -289,6 +291,7 @@ static int rigidbody_objects_remove_exec(bContext *C, wmOperator *UNUSED(op)) if (change) { /* send updates */ + WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, NULL); WM_event_add_notifier(C, NC_OBJECT | ND_POINTCACHE, NULL); /* done */ -- cgit v1.2.3