Small safety fix: clear temporary link list in node space when copying.
authorLukas Toenne <lukas.toenne@googlemail.com>
Tue, 15 Mar 2011 19:55:45 +0000 (19:55 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Tue, 15 Mar 2011 19:55:45 +0000 (19:55 +0000)
source/blender/editors/space_node/space_node.c

index 8f11e6807fa3eaf3ac83e757989fd6c4d6dfc9b7..5d9cb183e60346620c45bfc6233f2f0a089e7d41 100644 (file)
@@ -283,6 +283,7 @@ static SpaceLink *node_duplicate(SpaceLink *sl)
        
        /* clear or remove stuff from old */
        snoden->nodetree= NULL;
+       snoden->linkdrag.first= snoden->linkdrag.last= NULL;
        
        return (SpaceLink *)snoden;
 }