diff options
author | Germano <germano.costa@ig.com.br> | 2018-05-03 03:26:43 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-05-03 03:26:43 +0300 |
commit | e4774c0b2d02d3231c1bdc0097d879b77daa5651 (patch) | |
tree | ecd8b972fcca0f954b5ad9c4d0127910a35a3d11 /source/blender/blenkernel | |
parent | 36bbf8092903f55a317db94c4f7ca48c216b1a89 (diff) |
Metaball: pointers used in `DRW_shgroup_call_dynamic_add` don't need to hold the reference.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_mball.h | 4 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/mball.c | 26 |
2 files changed, 0 insertions, 30 deletions
diff --git a/source/blender/blenkernel/BKE_mball.h b/source/blender/blenkernel/BKE_mball.h index b05a35e614f..a486e8319c6 100644 --- a/source/blender/blenkernel/BKE_mball.h +++ b/source/blender/blenkernel/BKE_mball.h @@ -78,10 +78,6 @@ void BKE_mball_eval_geometry(struct Depsgraph *depsgraph, struct MetaBall *mball); /* Draw Cache */ -void BKE_mball_element_calc_scale_xform(float r_scale_xform[3][4], - const float obmat[4][4], - const float local_pos[3]); - enum { BKE_MBALL_BATCH_DIRTY_ALL = 0, }; 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; |