diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-17 10:31:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-17 10:34:14 +0300 |
commit | e05f719b8bc11457b4555bdd8bddf8fe6858ef9d (patch) | |
tree | 3b8be1532be93cc7c2f4f91ac02c3710f2c1ae13 /source/blender/bmesh/intern/bmesh_log.h | |
parent | 50522cba927e7280fb88e216fd19278fc2290b52 (diff) |
Dyntopo: avoid redundant lookup on original data
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_log.h')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_log.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/bmesh/intern/bmesh_log.h b/source/blender/bmesh/intern/bmesh_log.h index 2147b5c64b4..dd1772af068 100644 --- a/source/blender/bmesh/intern/bmesh_log.h +++ b/source/blender/bmesh/intern/bmesh_log.h @@ -96,6 +96,11 @@ const short *BM_log_original_vert_no(BMLog *log, BMVert *v); /* Get the logged mask of a vertex */ float BM_log_original_mask(BMLog *log, BMVert *v); +/* Get the logged data of a vertex (avoid multiple lookups) */ +void BM_log_original_vert_data( + BMLog *log, BMVert *v, + const float **r_co, const short **r_no); + /* For internal use only (unit testing) */ BMLogEntry *BM_log_current_entry(BMLog *log); struct RangeTreeUInt *BM_log_unused_ids(BMLog *log); |