diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c index 28de4c232e9..46ebfad1ddf 100644 --- a/source/blender/editors/space_node/node_edit.c +++ b/source/blender/editors/space_node/node_edit.c @@ -280,10 +280,12 @@ void ED_node_composit_default(Scene *sce) out= nodeAddNodeType(sce->nodetree, CMP_NODE_COMPOSITE, NULL, NULL); out->locx= 300.0f; out->locy= 400.0f; out->id= &sce->id; + id_us_plus(out->id); in= nodeAddNodeType(sce->nodetree, CMP_NODE_R_LAYERS, NULL, NULL); in->locx= 10.0f; in->locy= 400.0f; in->id= &sce->id; + id_us_plus(in->id); nodeSetActive(sce->nodetree, in); /* links from color to color */