[Bf-blender-cvs] [4719dbafdf9] blender2.8: Depsgraph: Ignore palettes from copy-on-write routines
Sergey Sharybin
noreply at git.blender.org
Mon Jul 24 16:24:50 CEST 2017
Commit: 4719dbafdf9c3e257a1e495a6a6c2653bf1e1269
Author: Sergey Sharybin
Date: Mon Jul 24 15:12:36 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB4719dbafdf9c3e257a1e495a6a6c2653bf1e1269
Depsgraph: Ignore palettes from copy-on-write routines
They are not covered by dependency graph.
===================================================================
M source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
index 46841c3c8a3..089de7c69bb 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
@@ -327,6 +327,9 @@ static bool check_datablock_expanded_at_construction(const ID *id_orig)
/* Those are datablocks which are not covered by dependency graph and hence
* does not need any remapping or anything.
+ *
+ * TODO(sergey): How to make it more robust for the future, so we don't have
+ * to maintain exception lists all over the code?
*/
static bool check_datablocks_copy_on_writable(const ID *id_orig)
{
@@ -336,7 +339,8 @@ static bool check_datablocks_copy_on_writable(const ID *id_orig)
ID_IM,
ID_LS,
ID_AC,
- ID_GR);
+ ID_GR,
+ ID_PAL);
}
/* Callback for BKE_library_foreach_ID_link which remaps original ID pointer
More information about the Bf-blender-cvs
mailing list