Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-02-20 09:47:51 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-02-20 12:06:07 +0300
commit55aaa270189838dced79cc6e72f495e14810c460 (patch)
tree499f9bc6c754ef34dd888dbdfb3f2ead6eb90f70 /source/blender/editors/sculpt_paint
parent637f97b316570aafb3cfd328f48b4c1ab70edc87 (diff)
Cleanup, avoid passing const pointer to MEM_freeN()
This generates warnings with MSVC. Similar typecast was already done in other cases, so think it's all fine.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index c29840cc654..b8693639673 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -3934,10 +3934,10 @@ static void project_paint_end(ProjPaintState *ps)
/* must be set for non-shared */
BLI_assert(ps->dm_mloopuv || ps->is_shared_user);
if (ps->dm_mloopuv)
- MEM_freeN(ps->dm_mloopuv);
+ MEM_freeN((void *)ps->dm_mloopuv);
if (ps->do_layer_clone)
- MEM_freeN(ps->dm_mloopuv_clone);
+ MEM_freeN((void *)ps->dm_mloopuv_clone);
if (ps->thread_tot > 1) {
BLI_spin_end(ps->tile_lock);
MEM_freeN((void *)ps->tile_lock);