diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-11-09 12:28:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-11-09 12:28:14 +0400 |
commit | eff734203ff7a0f4a4f97015c9f1f59632c75abf (patch) | |
tree | 8bcb05093f6a87ae154293e0b397f905e534669e /source/blender/blenlib/PIL_time.h | |
parent | 9dcd7f3b0b55e49a18296a67863368a0c4fca8b0 (diff) |
add fallbacks for BM_vert_calc_shell_factor() and BM_vert_calc_mean_tagged_edge_length() to avoid divide by zero when a vertex has no connected geometry.
also style cleanup.
Diffstat (limited to 'source/blender/blenlib/PIL_time.h')
-rw-r--r-- | source/blender/blenlib/PIL_time.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenlib/PIL_time.h b/source/blender/blenlib/PIL_time.h index afad190ba23..c3e7e8486d9 100644 --- a/source/blender/blenlib/PIL_time.h +++ b/source/blender/blenlib/PIL_time.h @@ -20,7 +20,7 @@ * * The Original Code is: all of this file. * - * Contributor(s): none yet. + * Contributor(s): Campbell Barton * * ***** END GPL LICENSE BLOCK ***** */ @@ -76,7 +76,10 @@ void PIL_sleep_ms(int ms); fflush(stdout); \ } (void)0 - +/** + * Given some function/expression: + * TIMEIT_BENCH(some_function(), some_unique_description); + */ #define TIMEIT_BENCH(expr, id) \ { \ TIMEIT_START(id); \ |