rigidbody: Add missig notifiers for add/remove operators
authorSergej Reich <sergej.reich@googlemail.com>
Fri, 17 May 2013 18:34:13 +0000 (18:34 +0000)
committerSergej Reich <sergej.reich@googlemail.com>
Fri, 17 May 2013 18:34:13 +0000 (18:34 +0000)
Fixes [#35403] Highlight not updating instantly when removing from Rigid body

source/blender/editors/physics/rigidbody_object.c

index 7761ab0a42d78c258a9b7cc03aa40c3379e330ee..003040908187619fe372292da647603e4f8b70fa 100644 (file)
@@ -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 */