diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-11 22:18:50 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-11 22:21:37 +0300 |
commit | d75bca1842fcea6af3f8b398b498d3e4ab91dbc5 (patch) | |
tree | 023a296cfa67c73346d813fff9b5a3e8f8e7aab2 /source/blender/editors/space_node/node_draw.c | |
parent | 9cff20e5c6ee9675087bc847964c11a4d565f803 (diff) |
Cleanup: replace more direct id->us handling by calls to BKE_library API.
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index 283457d1fc6..b4ab516ed5c 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -45,6 +45,7 @@ #include "BKE_context.h" #include "BKE_depsgraph.h" +#include "BKE_library.h" #include "BKE_main.h" #include "BKE_node.h" @@ -85,9 +86,7 @@ void ED_node_tree_update(const bContext *C) if (snode) { snode_set_context(C); - if (snode->nodetree && snode->nodetree->id.us == 0) { - snode->nodetree->id.us = 1; - } + id_us_ensure_real(&snode->nodetree->id); } } |