[Bf-blender-cvs] [9d0f4520768] master: Fix missed depsgraph update after undo in some cases

Brecht Van Lommel noreply at git.blender.org
Tue Apr 7 23:59:40 CEST 2020


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(



More information about the Bf-blender-cvs mailing list