Commit: 9d0f4520768fdf9689a05cf2640f097972aa68a3
Author: Brecht Van Lommel
Date:   Tue Apr 7 23:56:07 2020 +0200
Branches: master
https://developer.blender.org/rB9d0f4520768fdf9689a05cf2640f097972aa68a3

Fix missed depsgraph update after undo in some cases

Forgot to take into account legacy DEG_id_tag_update with zero flag.

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

M       source/blender/depsgraph/intern/depsgraph_tag.cc

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

diff --git a/source/blender/depsgraph/intern/depsgraph_tag.cc 
b/source/blender/depsgraph/intern/depsgraph_tag.cc
index aa9ce28850c..627a93b5869 100644
--- a/source/blender/depsgraph/intern/depsgraph_tag.cc
+++ b/source/blender/depsgraph/intern/depsgraph_tag.cc
@@ -625,7 +625,7 @@ void id_tag_update(Main *bmain, ID *id, int flag, 
eUpdateSource update_source)
 
   /* Accumulate all tags for an ID between two undo steps, so they can be
    * replayed for undo. */
-  id->recalc_undo_accumulated |= flag;
+  id->recalc_undo_accumulated |= deg_recalc_flags_effective(NULL, flag);
 }
 
 void graph_id_tag_update(

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to