[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31976] trunk/blender/source/blender/ editors: Fix #23869: outliner not updated correctly/instantly

Sergey Sharybin g.ulairi at gmail.com
Fri Sep 17 08:52:49 CEST 2010


Revision: 31976
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31976
Author:   nazgul
Date:     2010-09-17 08:52:48 +0200 (Fri, 17 Sep 2010)

Log Message:
-----------
Fix #23869: outliner not updated correctly/instantly

Added ND_OB_SELECT notifier to separate operator. Selected objects
aren't actually changing, but there is no existing ND which could be used
for outliner update.

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

Modified: trunk/blender/source/blender/editors/mesh/editmesh.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/editmesh.c	2010-09-17 05:58:06 UTC (rev 31975)
+++ trunk/blender/source/blender/editors/mesh/editmesh.c	2010-09-17 06:52:48 UTC (rev 31976)
@@ -1526,6 +1526,11 @@
 	   
 	if(retval) {
 		WM_event_add_notifier(C, NC_GEOM|ND_DATA, base->object->data);
+
+		// XXX: new object was created, but selection wasn't actually changed
+		//      need this for outliner update without adding new ND. nazgul.
+		WM_event_add_notifier(C, NC_SCENE|ND_OB_SELECT, scene);
+
 		return OPERATOR_FINISHED;
 	}
 	return OPERATOR_CANCELLED;

Modified: trunk/blender/source/blender/editors/space_outliner/space_outliner.c
===================================================================
--- trunk/blender/source/blender/editors/space_outliner/space_outliner.c	2010-09-17 05:58:06 UTC (rev 31975)
+++ trunk/blender/source/blender/editors/space_outliner/space_outliner.c	2010-09-17 06:52:48 UTC (rev 31976)
@@ -120,6 +120,7 @@
 						ED_region_tag_redraw(ar);
 					break;
 			}
+			break;
 		case NC_GROUP:
 			/* all actions now, todo: check outliner view mode? */
 			ED_region_tag_redraw(ar);





More information about the Bf-blender-cvs mailing list