Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-09-06 | sorting utility functions for simple cases - sorting pointers by float for ↵ | Campbell Barton | |
example. | |||
2013-09-06 | rename positive_mod to mod_i, make it work with nagative numbers (matching ↵ | Campbell Barton | |
pythons modulo), and use in a few more places. allow mesh-checker-deselect to have a negative offset. | |||
2013-09-05 | code cleanup: | Campbell Barton | |
- add missing headers from cmake (own omission) - quiet rna_test.c unused define warnings. - minor style edits - spelling corrections and ignore all uppercase words with spell checking script. | |||
2013-09-05 | add function for rotating linked list so at item is last. | Campbell Barton | |
2013-09-05 | add positive_mod() utility function. | Campbell Barton | |
2013-09-05 | remove error return value from BLI_bvhtree_insert, no callers were using. | Campbell Barton | |
in the case of an error - assert, rather then fail silently since it wont be working as expected anyway. | |||
2013-09-05 | use strict flags for kdopbvh, also assert when invalid treetype is passed, ↵ | Campbell Barton | |
rather then failing silently. | |||
2013-09-04 | move timeit macros into their own include, since they are only used for ↵ | Campbell Barton | |
testing and unrelated to PIL_time.h typical use. | |||
2013-09-03 | reorder BLI_strict_flags.h include so its not conflicting with stdio.h on apple. | Campbell Barton | |
2013-09-02 | warning cleanup: correct some odd returns and quiet strict flag warnings on ↵ | Campbell Barton | |
some systems. | |||
2013-09-02 | Some function didn't match their declaration | Sergey Sharybin | |
2013-09-02 | add hash iterator functions to access the pointer to the value. | Campbell Barton | |
2013-09-02 | add attributes to ghash and edgehash functions. | Campbell Barton | |
2013-09-02 | use strict flags for kdtree, and replace ints with unsigned ints where possible. | Campbell Barton | |
also replace callocs with mallocs since zeroing memory can be avoided. | |||
2013-09-01 | Fix [#36479] Particle instance Modifier random position snaps objects to 0 ↵ | Bastien Montagne | |
position Most work (tracking bug) done by Anthony Edlin, many thanks! Great example of why having duplicate code is never a good idea... ;) | |||
2013-09-01 | OSX/gcc4.6+: fix compiling, -Wconversion causes ann weeror in gcc's own ↵ | Jens Verwiebe | |
stdio.h else | |||
2013-09-01 | Move GCC attributes into a centraized defines | Sergey Sharybin | |
Instead of having ifdef __GNUC__ all over the headers to use special compiler's hints use a special file where all things like this are concentrated. Makes code easier to follow and allows to manage special attributes in more efficient way. Thanks Campbell for review! | |||
2013-09-01 | kd-tree, | Campbell Barton | |
- replace numbers with defines for allocation increments and default array size. - move array reallocation into a static function (deduplicate 2x). also fix own mistake with uninitialized slop-space var in memory printing statistics. | |||
2013-09-01 | Mingw/Windows Compiling Fix: | Joshua Leung | |
In file included from source\blender\compositor\operations\COM_PlaneTrackMaskOperation.cpp:31:0: source\blender\blenlib/BLI_jitter.h:36:65: error: expected ',' or '...' before numeric constant source\blender\blenlib/BLI_jitter.h:37:65: error: expected ',' or '...' before numeric constant It appears that an include used in COM_PlaneTrackMaskOperation.cpp brings in some Windows header file, which in turn defines rad/rad1/rad2 as some numeric constants. | |||
2013-09-01 | use strict flags for lasso, boxpack, gsqueue and quadric's. | Campbell Barton | |
for lasso also use unsigned ints rather then shorts for the path length. | |||
2013-09-01 | use strict flags for scanfill, also replace shorts with unsigned shorts and ↵ | Campbell Barton | |
ints/bools in some cases. | |||
2013-09-01 | move strict compiler checks into a header so its easier to manage in one ↵ | Campbell Barton | |
place (pragmas were copied around). also enable more strict warnings for BLF (which had some incorrect casts). | |||
2013-08-31 | tweak mempool loop comparisons when we know there is no chance for skipping ↵ | Campbell Barton | |
past the last value. also correct typo. | |||
2013-08-31 | Simplify line/plane intersection, add line_plane_factor_v3(). | Campbell Barton | |
Remove no_flip option for isect_line_plane_v3(), its quite specific and only used for ED_view3d_win_to_3d(). | |||
2013-08-31 | remove unnecessary check in BLI_mempool_iterstep and add doxygen comments to ↵ | Campbell Barton | |
mempool. | |||
2013-08-31 | mempool internal change, use unsigned ints where possible (less overhead), | Campbell Barton | |
also quiet compiler warning for BLI_LINKSTACK_FREE macro. | |||
2013-08-30 | Some knife fixes. Avoids duplicating verts; better handling of cut-through ↵ | Howard Trickey | |
ortho. Now cut lines detect vertices that they pass (almost) exactly over and snap to them, to avoid making verts vert close to other ones. Added radius arg to BKE_bmbvh_ray_cast so that can detect an obscuring face when the ray might otherwise go exactly between two triangles. Needed an isect_line_tri_epsilon function for similar reason. Fixes last part of bug #35002. Other knife bugs still present but getting this commit in now before continuing bug fixing. | |||
2013-08-29 | default blend file name setting (untitled.blend) length check wasn't ↵ | Campbell Barton | |
correct, move to generic function BLI_ensure_filename(). | |||
2013-08-29 | micro-optimization, avoid checking is_power_of_2_i once in power_of_2_max_i | Campbell Barton | |
also whitespace edit. | |||
2013-08-28 | remove callback BLI_localErrorCallBack from scanfill, was here for years and ↵ | Campbell Barton | |
only ever wrapped printf. | |||
2013-08-28 | scanfill curves, ngons, masks had their own memarena code and would allocate ↵ | Campbell Barton | |
a new one for every fill. now use BLI_memarena and support passing the arena into the fill function, so the arena is re-used, when scanfill is called in a loop. | |||
2013-08-27 | Get rid of madness about fnmatch: BLI_fnmatch did not do the OS checks, they ↵ | Bastien Montagne | |
had to be done in every file using fnmatch (autoexec.c did not, wonder how it could work under unix???). Thanks to Brecht for noting this! | |||
2013-08-27 | ghash/bli-listbase edits, rename BLI_ghash_pop -> BLI_ghash_popkey (since it ↵ | Campbell Barton | |
takes a key as an arg and isnt popping any element from the hash as you might expect). add BLI_pophead/tail, since getting the first element from a list and removing it is a common task. | |||
2013-08-26 | internal changes to ghash/edgehash, reorganize to split out resizing the ↵ | Campbell Barton | |
hash from insertion. | |||
2013-08-26 | add some safety checks in debug mode to ensure sets/hashes aren't confused. | Campbell Barton | |
2013-08-26 | minor changes to edgehassh/ghash | Campbell Barton | |
- no need to zero vars when freeing ghash - de duplicate ghash remove code. - edgehash clear now works more like ghash. | |||
2013-08-26 | replace hashes with sets where possible. | Campbell Barton | |
2013-08-26 | BKI_gset and EdgeSet api, use when hash values aren't used (reuses ghash ↵ | Campbell Barton | |
internally without allocating space for the value). | |||
2013-08-25 | move doxy docs out of the ghash header into the C file. | Campbell Barton | |
2013-08-25 | clearing the mempool can now keep more then a single element reserved. | Campbell Barton | |
2013-08-25 | fix leak in BLI_ghash_clear(). was never freeing entries, add ↵ | Campbell Barton | |
BLI_mempool_clear utility function. | |||
2013-08-25 | code cleanup for mempool, refactor chunk initialization into a static function. | Campbell Barton | |
2013-08-25 | merge mempool allocs per chunk, include the data in the BLI_mempool_chunk alloc. | Campbell Barton | |
2013-08-25 | doxygen docs for ghash/edgehash | Campbell Barton | |
2013-08-25 | For pointer hashing use the same method as python, it gives better distribution. | Campbell Barton | |
some tests with high poly mesh data in hashes. - empty buckets before 4-5%, after 1-2% - speedup for hash lookups, in my tests lookups take approx ~60% of the time they did before. | |||
2013-08-25 | use ints for ghash/edgehash flags, since its allocated theres not much point ↵ | Campbell Barton | |
to try save a few bytes here. | |||
2013-08-24 | cloth was using edgehash not quite correctly: | Campbell Barton | |
- was ordering vertex args unnecessarily. - was adding the same edges multiple times into the edgehash. | |||
2013-08-24 | add versions of BLI_ghash_int_new, BLI_ghash_str_new, etc. that take a ↵ | Campbell Barton | |
reserve argument. | |||
2013-08-24 | revert bucket size change (edgehash was this way for years, since r26206, ↵ | Campbell Barton | |
ghash since r57657) having 2 free buckets for each entry is faster but uses more memory. use the original size, best case 3 entries per bucket. | |||
2013-08-24 | when the size of an edgehash is known or can be guessed, | Campbell Barton | |
pass in the argument to reserve the size. |