From e4774c0b2d02d3231c1bdc0097d879b77daa5651 Mon Sep 17 00:00:00 2001 From: Germano Date: Wed, 2 May 2018 21:26:43 -0300 Subject: Metaball: pointers used in `DRW_shgroup_call_dynamic_add` don't need to hold the reference. --- source/blender/blenkernel/intern/mball.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'source/blender/blenkernel/intern/mball.c') diff --git a/source/blender/blenkernel/intern/mball.c b/source/blender/blenkernel/intern/mball.c index 47f15e99b5f..d7fb2d0a17b 100644 --- a/source/blender/blenkernel/intern/mball.c +++ b/source/blender/blenkernel/intern/mball.c @@ -550,32 +550,6 @@ void BKE_mball_eval_geometry(struct Depsgraph *UNUSED(depsgraph), /* Draw Engine */ -/* use for draw-manager only. */ -void BKE_mball_element_calc_scale_xform(float r_scale_xform[3][4], - const float obmat[4][4], - const float local_pos[3]) -{ - float world_pos[3], scamat[3][3]; - mul_v3_m4v3(world_pos, obmat, local_pos); - copy_m3_m4(scamat, obmat); - { - /* Get the normalized inverse matrix to extract only - * the scale of Scamat */ - float iscamat[3][3]; - invert_m3_m3(iscamat, scamat); - normalize_m3(iscamat); - mul_m3_m3_post(scamat, iscamat); - } - - copy_v3_v3(r_scale_xform[0], scamat[0]); - copy_v3_v3(r_scale_xform[1], scamat[1]); - copy_v3_v3(r_scale_xform[2], scamat[2]); - - r_scale_xform[0][3] = world_pos[0]; - r_scale_xform[1][3] = world_pos[1]; - r_scale_xform[2][3] = world_pos[2]; -} - void (*BKE_mball_batch_cache_dirty_cb)(MetaBall *mb, int mode) = NULL; void (*BKE_mball_batch_cache_free_cb)(MetaBall *mb) = NULL; -- cgit v1.2.3