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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-05-08 16:04:10 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-05-08 16:04:10 +0300
commit3740f7593d7146135c2d2fac363f8aed4ba41cf0 (patch)
tree73b7c69eca3db4a8b1337588d36dd18b7b4d9cc8 /source/blender/modifiers/intern/MOD_collision.c
parent49fe27ee46b4d9272957c21c13365db322ca8396 (diff)
Cleanup: Nuke empty dummy wrappers around modifier_copyData_generic().
This also changes signature of modifier copy callback, first (source) parameter is now a const, which is saner anyway!
Diffstat (limited to 'source/blender/modifiers/intern/MOD_collision.c')
-rw-r--r--source/blender/modifiers/intern/MOD_collision.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/modifiers/intern/MOD_collision.c b/source/blender/modifiers/intern/MOD_collision.c
index f2698b43652..6cf6bd36fff 100644
--- a/source/blender/modifiers/intern/MOD_collision.c
+++ b/source/blender/modifiers/intern/MOD_collision.c
@@ -81,10 +81,7 @@ static void freeData(ModifierData *md)
MEM_SAFE_FREE(collmd->current_xnew);
MEM_SAFE_FREE(collmd->current_v);
- if (collmd->tri) {
- MEM_freeN((void *)collmd->tri);
- collmd->tri = NULL;
- }
+ MEM_SAFE_FREE(collmd->tri);
collmd->time_x = collmd->time_xnew = -1000;
collmd->mvert_num = 0;