Fix #34873, Custom min/max node values get reset randomly while working and on save and quit. Node group socket interface was not storing the default_value struct in writefile.c, forgot to add this back when returning to DNA data for node sockets.

This commit is contained in:
Lukas Toenne
2013-04-05 11:16:06 +00:00
parent e579400d92
commit b31ca01357

View File

@@ -726,6 +726,9 @@ static void write_node_socket_interface(WriteData *wd, bNodeTree *UNUSED(ntree),
if (sock->prop)
IDP_WriteProperty(sock->prop, wd);
if (sock->default_value)
writedata(wd, DATA, MEM_allocN_len(sock->default_value), sock->default_value);
}
/* this is only direct data, tree itself should have been written */
static void write_nodetree(WriteData *wd, bNodeTree *ntree)