diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-10-07 23:02:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-10-07 23:02:08 +0400 |
commit | a8705e99ee8ec9de2f25c3bac1e9895c2f98c224 (patch) | |
tree | 096cddaf9ebe5018b5df72c0eb1460b5ab9b3ad4 /source | |
parent | 37474e50cefe703331fc3042e4d009e8db0519cf (diff) |
Sculpt: minor speedup for dyntopo
Add retake to range-tree to avoid double lookup.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_log.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/bmesh/intern/bmesh_log.c b/source/blender/bmesh/intern/bmesh_log.c index 0bb1a892ffe..709a174731f 100644 --- a/source/blender/bmesh/intern/bmesh_log.c +++ b/source/blender/bmesh/intern/bmesh_log.c @@ -423,9 +423,7 @@ static void bm_log_id_ghash_retake(RangeTreeUInt *unused_ids, GHash *id_ghash) void *key = BLI_ghashIterator_getKey(&gh_iter); unsigned int id = GET_UINT_FROM_POINTER(key); - if (range_tree_uint_has(unused_ids, id)) { - range_tree_uint_take(unused_ids, id); - } + range_tree_uint_retake(unused_ids, id); } } |