Merge branch 'master' into blender2.8
[blender.git] / source / blender / modifiers / intern / MOD_dynamicpaint.c
index f951c96..a45cb21 100644 (file)
@@ -62,12 +62,6 @@ static void copyData(const ModifierData *md, ModifierData *target)
        DynamicPaintModifierData *tpmd = (DynamicPaintModifierData *)target;
        
        dynamicPaint_Modifier_copy(pmd, tpmd);
-
-       if (tpmd->canvas) {
-               for (DynamicPaintSurface *surface = tpmd->canvas->surfaces.first; surface; surface = surface->next) {
-                       id_us_plus((ID *)surface->init_texture);
-               }
-       }
 }
 
 static void freeData(ModifierData *md)