forked from bartvdbraak/blender
increase the reference counts when setting default scene compo nodes else removing them can set the user count < 0.
This commit is contained in:
parent
3e173f4d21
commit
fd7728883a
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user