diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-08-29 13:51:56 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-08-29 13:58:55 +0300 |
commit | f84684694113f60e9d8de5e30c7af8f340e52106 (patch) | |
tree | aa11c7b4a602f4ae9e061d8c9fe30c0403afd982 /source/blender/blenkernel/BKE_node.h | |
parent | c1582667cabe025bd3a1ee4a3db27e2b3fd9e42a (diff) |
Depsgraph: Fix missing updates when tweaking node tree parameters
The is following: split copy on write update for node trees, and if we are only
tagging for uniform buffer update we skip whole datablock copy and only invoke
copy default_values form original nodetree to a copied one.
Thing which i'm not sure is: whether we need to use different branches in graph
itself to control such a conditional behavior, or whether we need to store tag
somewhere in the dependency graph. There are obviously cons and pros in both
approaches, and need to think about this. Maybe with more examples it becomes
more obvious which way is better.
This only fixes manual tweaks for now, animation support is coming.
Diffstat (limited to 'source/blender/blenkernel/BKE_node.h')
-rw-r--r-- | source/blender/blenkernel/BKE_node.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index 5bc47f62b64..ea0b350b8af 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -1053,8 +1053,13 @@ void free_nodesystem(void); /* -------------------------------------------------------------------- */ /* evaluation support, */ +struct EvaluationContext; + void BKE_nodetree_copy_default_values(struct bNodeTree *ntree_dst, const struct bNodeTree *ntree_src); +void BKE_nodetree_shading_params_eval(const struct EvaluationContext *eval_ctx, + struct bNodeTree *ntree_dst, + const struct bNodeTree *ntree_src); #endif /* __BKE_NODE_H__ */ |