diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-10-07 18:48:29 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-10-07 18:48:29 +0400 |
commit | cf4f00b2fa6dfecc400519a635c41798bf45ca88 (patch) | |
tree | 342967b2b2a1254a23aca3c8e0ae22a7009e86f2 /source/blender/editors/space_node/node_draw.c | |
parent | 17c083a38f3a5269a3224b632f0bc129d831dc5d (diff) |
Preview Render:
* Fixes for texture and material nodes.
* Texture node previews now work more like materials.
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index 3fc91fea914..dd2dc0d796a 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -54,6 +54,7 @@ #include "MEM_guardedalloc.h" #include "BKE_context.h" +#include "BKE_depsgraph.h" #include "BKE_global.h" #include "BKE_image.h" #include "BKE_library.h" @@ -102,6 +103,7 @@ void ED_node_changed_update(bContext *C, bNode *node) return; if(snode->treetype==NTREE_SHADER) { + DAG_id_flush_update(snode->id, 0); WM_event_add_notifier(C, NC_MATERIAL|ND_SHADING, snode->id); } else if(snode->treetype==NTREE_COMPOSIT) { @@ -127,6 +129,7 @@ void ED_node_changed_update(bContext *C, bNode *node) WM_event_add_notifier(C, NC_SCENE|ND_NODES, CTX_data_scene(C)); } else if(snode->treetype==NTREE_TEXTURE) { + DAG_id_flush_update(snode->id, 0); WM_event_add_notifier(C, NC_TEXTURE|ND_NODES, snode->id); } |