2.5
[blender-staging.git] / source / blender / editors / space_image / space_image.c
index ca642072829575f512fd2310869adfc3e35573ef..41389f442d24ec8ac580c30e4bc2065d06119973 100644 (file)
@@ -120,6 +120,8 @@ static SpaceLink *image_duplicate(SpaceLink *sl)
        SpaceImage *simagen= MEM_dupallocN(sl);
        
        /* clear or remove stuff from old */
+       if(simagen->cumap)
+               simagen->cumap= curvemapping_copy(simagen->cumap);
        
        return (SpaceLink *)simagen;
 }