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:
authorCampbell Barton <ideasman42@gmail.com>2015-04-17 10:31:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-04-17 10:34:14 +0300
commite05f719b8bc11457b4555bdd8bddf8fe6858ef9d (patch)
tree3b8be1532be93cc7c2f4f91ac02c3710f2c1ae13 /source/blender/bmesh/intern/bmesh_log.h
parent50522cba927e7280fb88e216fd19278fc2290b52 (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.h5
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);