[Bf-blender-cvs] [749a8daf26f] id_copy_refactor: Fix compiler warnings from own recent rB0d5c7e5e36b9.

Bastien Montagne noreply at git.blender.org
Tue Jun 20 17:56:35 CEST 2017


Commit: 749a8daf26f2eaae72f2620308e28541c871e832
Author: Bastien Montagne
Date:   Mon Jun 19 14:43:44 2017 +0200
Branches: id_copy_refactor
https://developer.blender.org/rB749a8daf26f2eaae72f2620308e28541c871e832

Fix compiler warnings from own recent rB0d5c7e5e36b9.

===================================================================

M	source/blender/modifiers/intern/MOD_dynamicpaint.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_dynamicpaint.c b/source/blender/modifiers/intern/MOD_dynamicpaint.c
index d54e052e438..83a42504180 100644
--- a/source/blender/modifiers/intern/MOD_dynamicpaint.c
+++ b/source/blender/modifiers/intern/MOD_dynamicpaint.c
@@ -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);
 	}
 }




More information about the Bf-blender-cvs mailing list