Merging r41597 through r41607 from trunk into soc-2011-tomato
[blender.git] / source / blender / blenkernel / intern / node.c
index e2ef39b7563d764f0a2ee7e576402c41635ad163..115591863cca656832833ac599978e7c290a6ab4 100644 (file)
@@ -629,7 +629,7 @@ bNodeTree *ntreeCopyTree(bNodeTree *ntree)
        for(newtree=G.main->nodetree.first; newtree; newtree= newtree->id.next)
                if(newtree==ntree) break;
        if(newtree) {
-               newtree= copy_libblock(ntree);
+               newtree= copy_libblock(&ntree->id);
        } else {
                newtree= MEM_dupallocN(ntree);
                copy_libblock_data(&newtree->id, &ntree->id, TRUE); /* copy animdata and ID props */