Fix for [#34598] Modifier-Icon in Outliner does not appear
authorThomas Dinges <blender@dingto.org>
Mon, 11 Mar 2013 19:50:11 +0000 (19:50 +0000)
committerThomas Dinges <blender@dingto.org>
Mon, 11 Mar 2013 19:50:11 +0000 (19:50 +0000)
* OBJECT_OT_make_links_scene did only trigger an 3D View update which was insufficient for Outliner (modifiers for example) and also some parts inside the Properties Editor (Mesh Data, Material Data).

source/blender/editors/object/object_relations.c
source/blender/editors/space_outliner/space_outliner.c

index e5383e1..4ae9790 100644 (file)
@@ -1543,6 +1543,7 @@ static int make_links_data_exec(bContext *C, wmOperator *op)
 
        DAG_relations_tag_update(bmain);
        WM_event_add_notifier(C, NC_SPACE | ND_SPACE_VIEW3D, CTX_wm_view3d(C));
+       WM_event_add_notifier(C, NC_OBJECT, NULL);
 
        return OPERATOR_FINISHED;
 }
index 4bf8837..be404e4 100644 (file)
@@ -316,6 +316,10 @@ static void outliner_main_area_listener(ARegion *ar, wmNotifier *wmn)
                                        /* all modifier actions now */
                                        ED_region_tag_redraw(ar);
                                        break;
+                               default:
+                                       /* Trigger update for NC_OBJECT itself */
+                                       ED_region_tag_redraw(ar);
+                                       break;
                        }
                        break;
                case NC_GROUP: