Big node groups improvement patch. Node group trees now have their own lists of input...
[blender.git] / source / blender / blenloader / intern / writefile.c
index e8275dde2af71ea77c1c36df5fbfa3755fdf09a9..8d0656e45e1e9d530b5d14a37a965ffa32011763 100644 (file)
@@ -670,6 +670,12 @@ static void write_nodetree(WriteData *wd, bNodeTree *ntree)
        
        for(link= ntree->links.first; link; link= link->next)
                writestruct(wd, DATA, "bNodeLink", 1, link);
+       
+       /* external sockets */
+       for(sock= ntree->inputs.first; sock; sock= sock->next)
+               writestruct(wd, DATA, "bNodeSocket", 1, sock);
+       for(sock= ntree->outputs.first; sock; sock= sock->next)
+               writestruct(wd, DATA, "bNodeSocket", 1, sock);
 }
 
 static void current_screen_compat(Main *mainvar, bScreen **screen)