Bugfix: duplicate time node didn't copy the curve itself.

This commit is contained in:
2006-02-11 16:52:18 +00:00
parent f4e491e2f4
commit c2bc882bb9

View File

@@ -828,7 +828,7 @@ bNode *nodeCopyNode(struct bNodeTree *ntree, struct bNode *node)
nnode->storage= MEM_dupallocN(nnode->storage);
}
else if(ntree->type==NTREE_COMPOSIT) {
if(node->type==CMP_NODE_CURVE_VEC || node->type==CMP_NODE_CURVE_RGB)
if(ELEM3(node->type, CMP_NODE_TIME, CMP_NODE_CURVE_VEC, CMP_NODE_CURVE_RGB))
nnode->storage= curvemapping_copy(node->storage);
else
nnode->storage= MEM_dupallocN(nnode->storage);