[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [61111] trunk/blender/source/blender/ editors/object/object_constraint.c: Bugfix [#37168] Outliner refresh error after removing constraints

Joshua Leung aligorith at gmail.com
Tue Nov 5 03:01:40 CET 2013


Revision: 61111
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=61111
Author:   aligorith
Date:     2013-11-05 02:01:39 +0000 (Tue, 05 Nov 2013)
Log Message:
-----------
Bugfix [#37168] Outliner refresh error after removing constraints

Clear constraints operators were missing the NA_REMOVED flag which the Outliner
was checking for before it would perform the necessary updates.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/object/object_constraint.c

Modified: trunk/blender/source/blender/editors/object/object_constraint.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_constraint.c	2013-11-05 01:44:38 UTC (rev 61110)
+++ trunk/blender/source/blender/editors/object/object_constraint.c	2013-11-05 02:01:39 UTC (rev 61111)
@@ -1331,7 +1331,7 @@
 
 	/* do updates */
 	DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
-	WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT, ob);
+	WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT | NA_REMOVED, ob);
 	
 	return OPERATOR_FINISHED;
 }
@@ -1365,7 +1365,7 @@
 	DAG_relations_tag_update(bmain);
 	
 	/* do updates */
-	WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT, NULL);
+	WM_event_add_notifier(C, NC_OBJECT | ND_CONSTRAINT | NA_REMOVED, NULL);
 	
 	return OPERATOR_FINISHED;
 }




More information about the Bf-blender-cvs mailing list