fix [#32635] no viewport update when link and object to a scene
authorCampbell Barton <ideasman42@gmail.com>
Sun, 23 Sep 2012 23:44:10 +0000 (23:44 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 23 Sep 2012 23:44:10 +0000 (23:44 +0000)
also comment unused static RNA functions.

source/blender/editors/object/object_relations.c
source/blender/makesrna/intern/rna_main_api.c

index cafc7ce930046459bda5a9feb8069c28f56bce81..950ef5826f1d01b7fad51e3f517e7fdb9054ab65 100644 (file)
@@ -1275,6 +1275,9 @@ static int make_links_scene_exec(bContext *C, wmOperator *op)
 
        DAG_ids_flush_update(bmain, 0);
 
+       /* redraw the 3D view because the object center points are colored differently */
+       WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, NULL);
+
        /* one day multiple scenes will be visible, then we should have some update function for them */
        return OPERATOR_FINISHED;
 }
index d81b6e50872a794cde678785791e73fa81e37901..f5c59aa583ab2d4650a241205efcdebacaedeb99 100644 (file)
@@ -581,8 +581,8 @@ static void rna_Main_textures_tag(Main *bmain, int value) { tag_main_lb(&bmain->
 static void rna_Main_brushes_tag(Main *bmain, int value) { tag_main_lb(&bmain->brush, value); }
 static void rna_Main_worlds_tag(Main *bmain, int value) { tag_main_lb(&bmain->world, value); }
 static void rna_Main_groups_tag(Main *bmain, int value) { tag_main_lb(&bmain->group, value); }
-static void rna_Main_shape_keys_tag(Main *bmain, int value) { tag_main_lb(&bmain->key, value); }
-static void rna_Main_scripts_tag(Main *bmain, int value) { tag_main_lb(&bmain->script, value); }
+// static void rna_Main_shape_keys_tag(Main *bmain, int value) { tag_main_lb(&bmain->key, value); }
+// static void rna_Main_scripts_tag(Main *bmain, int value) { tag_main_lb(&bmain->script, value); }
 static void rna_Main_texts_tag(Main *bmain, int value) { tag_main_lb(&bmain->text, value); }
 static void rna_Main_speakers_tag(Main *bmain, int value) { tag_main_lb(&bmain->speaker, value); }
 static void rna_Main_sounds_tag(Main *bmain, int value) { tag_main_lb(&bmain->sound, value); }