[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51399] trunk/blender/source/blender/ editors/space_outliner/outliner_edit.c: Fix #32913: missing cycles viewport update when toggling visibility in outliner

Brecht Van Lommel brechtvanlommel at pandora.be
Thu Oct 18 13:58:55 CEST 2012


Revision: 51399
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51399
Author:   blendix
Date:     2012-10-18 11:58:54 +0000 (Thu, 18 Oct 2012)
Log Message:
-----------
Fix #32913: missing cycles viewport update when toggling visibility in outliner
with V and R shortcut keys.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_outliner/outliner_edit.c

Modified: trunk/blender/source/blender/editors/space_outliner/outliner_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_outliner/outliner_edit.c	2012-10-18 10:27:09 UTC (rev 51398)
+++ trunk/blender/source/blender/editors/space_outliner/outliner_edit.c	2012-10-18 11:58:54 UTC (rev 51399)
@@ -368,12 +368,14 @@
 
 static int outliner_toggle_visibility_exec(bContext *C, wmOperator *UNUSED(op))
 {
+	Main *bmain = CTX_data_main(C);
 	SpaceOops *soops = CTX_wm_space_outliner(C);
 	Scene *scene = CTX_data_scene(C);
 	ARegion *ar = CTX_wm_region(C);
 	
 	outliner_do_object_operation(C, scene, soops, &soops->tree, object_toggle_visibility_cb);
 	
+	DAG_id_type_tag(bmain, ID_OB);
 	WM_event_add_notifier(C, NC_SCENE | ND_OB_VISIBLE, scene);
 	ED_region_tag_redraw(ar);
 	
@@ -464,11 +466,13 @@
 
 static int outliner_toggle_renderability_exec(bContext *C, wmOperator *UNUSED(op))
 {
+	Main *bmain = CTX_data_main(C);
 	SpaceOops *soops = CTX_wm_space_outliner(C);
 	Scene *scene = CTX_data_scene(C);
 	
 	outliner_do_object_operation(C, scene, soops, &soops->tree, object_toggle_renderability_cb);
 	
+	DAG_id_type_tag(bmain, ID_OB);
 	WM_event_add_notifier(C, NC_SCENE | ND_OB_RENDER, scene);
 	
 	return OPERATOR_FINISHED;




More information about the Bf-blender-cvs mailing list