Bugfix: duplicate time node didn't copy the curve itself.
This commit is contained in:
@@ -828,7 +828,7 @@ bNode *nodeCopyNode(struct bNodeTree *ntree, struct bNode *node)
|
|||||||
nnode->storage= MEM_dupallocN(nnode->storage);
|
nnode->storage= MEM_dupallocN(nnode->storage);
|
||||||
}
|
}
|
||||||
else if(ntree->type==NTREE_COMPOSIT) {
|
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);
|
nnode->storage= curvemapping_copy(node->storage);
|
||||||
else
|
else
|
||||||
nnode->storage= MEM_dupallocN(nnode->storage);
|
nnode->storage= MEM_dupallocN(nnode->storage);
|
||||||
|
|||||||
Reference in New Issue
Block a user