diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-08-29 12:26:57 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-08-29 12:32:25 +0300 |
commit | 83ea224a7fa2261ded92b5a341c9237855148963 (patch) | |
tree | 5a6e88864a2e4341dfcdc7bf9c55fb01b5566d9e /source/blender/editors/space_api/spacetypes.c | |
parent | 6b8132a153d0bad697005d1d93c9827c2be8a273 (diff) |
Depsgraph: Fix missing updates when changing node tree topology
There were two issues here:
1. material_update did not do anything, because DEG_id_tag_update was storing
update tags in original IDs, which had nothing evaluated. Even more, material
update should have been called with evaluated version of material, Solved
this by copying update tag from original ID to a copied one.
However, perhaps DEG_id_tag_update should tag both original and copied ID,
so updates are never gets lots if some depsgraph is not visible.
2. Tagging material for update should ensure it's copied version of node tree is
up to date, otherwise material will still use old node tree.
This solves missing material updates when changing topology. Tweaking values is
still broken, because of GPUMaterial using pointer to original node's socket
value, which gets broken after copy-on-write of the node tree (pointers of nodes
are changing).
Diffstat (limited to 'source/blender/editors/space_api/spacetypes.c')
0 files changed, 0 insertions, 0 deletions