Fix compiler warnings from own recent rB0d5c7e5e36b9.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 19 Jun 2017 12:43:44 +0000 (14:43 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 19 Jun 2017 12:43:44 +0000 (14:43 +0200)
source/blender/modifiers/intern/MOD_dynamicpaint.c

index d54e052e438b8ead4cd0323fd9164a56c756271b..83a4250418020b69be29d852d2d6ea2cca63234e 100644 (file)
@@ -62,11 +62,11 @@ static void copyData(ModifierData *md, ModifierData *target)
 
        if (tpmd->canvas) {
                for (DynamicPaintSurface *surface = tpmd->canvas->surfaces.first; surface; surface = surface->next) {
-                       id_us_plus(surface->init_texture);
+                       id_us_plus((ID *)surface->init_texture);
                }
        }
        if (tpmd->brush) {
-               id_us_plus(tpmd->brush->mat);
+               id_us_plus((ID *)tpmd->brush->mat);
        }
 }