[Bf-blender-cvs] [a77cd3e] id-remap: Fix 3DView and others not updating after ID remapping.

Bastien Montagne noreply at git.blender.org
Thu Sep 3 17:57:40 CEST 2015


Commit: a77cd3e9531b72be13ca649d0a580228165e6348
Author: Bastien Montagne
Date:   Thu Sep 3 17:56:03 2015 +0200
Branches: id-remap
https://developer.blender.org/rBa77cd3e9531b72be13ca649d0a580228165e6348

Fix 3DView and others not updating after ID remapping.

Notifiers usage could really use a good cleanup imho...

===================================================================

M	source/blender/editors/space_outliner/outliner_tools.c

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_tools.c b/source/blender/editors/space_outliner/outliner_tools.c
index 336af47..ae0ac85 100644
--- a/source/blender/editors/space_outliner/outliner_tools.c
+++ b/source/blender/editors/space_outliner/outliner_tools.c
@@ -1283,7 +1283,8 @@ static int outliner_id_remap_exec(bContext *C, wmOperator *op)
 	ED_undo_push(C, "Remap ID action");
 
 	/* We want to redraw everything... */
-	WM_event_add_notifier(C, NC_WM | ND_DRAW, NULL);
+	WM_event_add_notifier(C, NC_ID | NA_RENAME, NULL);
+	WM_event_add_notifier(C, NC_SPACE | ND_SPACE_OUTLINER, NULL);
 
 	return OPERATOR_FINISHED;
 }




More information about the Bf-blender-cvs mailing list