Fix #27816: Outliner does not update when parents are cleared
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 1 Jul 2011 05:58:28 +0000 (05:58 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 1 Jul 2011 05:58:28 +0000 (05:58 +0000)
Added NC_OBJECT|ND_PARENT notifier to OBJECT_OT_parent_clear operator.

source/blender/editors/object/object_relations.c

index aa2e6d2c145bfa9aab4f6f07d231f1c829e6eef9..f3b67867d7ff45af18c6fadbda8d74650b52ec35 100644 (file)
@@ -446,6 +446,7 @@ static int parent_clear_exec(bContext *C, wmOperator *op)
        DAG_scene_sort(bmain, scene);
        DAG_ids_flush_update(bmain, 0);
        WM_event_add_notifier(C, NC_OBJECT|ND_TRANSFORM, NULL);
+       WM_event_add_notifier(C, NC_OBJECT|ND_PARENT, NULL);
 
        return OPERATOR_FINISHED;
 }