cloth was using edgehash not quite correctly:
- was ordering vertex args unnecessarily.
- was adding the same edges multiple times into the edgehash.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59478 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#36553] Revert modified startup.blend from r59445

Modified startup.blend was a regular blend rather than a start-up file, removing the UserDef section.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59480 954f8c5b-7b00-dc11-b283-0030488c597c
correct error in face walker (was inserting into the wrong ghash which was immediately freed after)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59481 954f8c5b-7b00-dc11-b283-0030488c597c
Add stdlib.h to solve compilation error caused by missing abort() prototype

Perhaps we'd better move this include to BLI_utildefines as we made with
with other includes needed for BLI_abort?

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59482 954f8c5b-7b00-dc11-b283-0030488c597c
Fix bad draw of plane track when using Tiny display option

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59483 954f8c5b-7b00-dc11-b283-0030488c597c
ghash: reserve size when its known or can be guessed close enough.
also avoid allocs per node in pbvh_bmesh_node_limit_ensure()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59484 954f8c5b-7b00-dc11-b283-0030488c597c
Quiet annoying VC++ warning C4819: The file contains a character that cannot be represented in the current code page.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59485 954f8c5b-7b00-dc11-b283-0030488c597c
use ints for ghash/edgehash flags, since its allocated theres not much point to try save a few bytes here.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59486 954f8c5b-7b00-dc11-b283-0030488c597c
For pointer hashing use the same method as python, it gives better distribution.

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.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59487 954f8c5b-7b00-dc11-b283-0030488c597c
doxygen docs for ghash/edgehash


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59490 954f8c5b-7b00-dc11-b283-0030488c597c
merge mempool allocs per chunk, include the data in the BLI_mempool_chunk alloc.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59492 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup for mempool, refactor chunk initialization into a static function.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59495 954f8c5b-7b00-dc11-b283-0030488c597c
fix leak in BLI_ghash_clear(). was never freeing entries, add BLI_mempool_clear utility function.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59496 954f8c5b-7b00-dc11-b283-0030488c597c
clearing the mempool can now keep more then a single element reserved.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59497 954f8c5b-7b00-dc11-b283-0030488c597c
move doxy docs out of the ghash header into the C file.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59498 954f8c5b-7b00-dc11-b283-0030488c597c
Partial revert of UI appearance changes in r52778 in the Strokes tab of the Freestyle Line Style panel.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59499 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#36289] Not change children object on freez layer when change frame.

When hiding the layer of an object, switching to a different fram, and showing again that layer, things like object's parenting were not handled... Just set do_time option of DAG_on_visible_update() to True when updating layers.

Note: maybe we could re-enable layers animation... not sure though ;)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59500 954f8c5b-7b00-dc11-b283-0030488c597c
BKI_gset and EdgeSet api, use when hash values aren't used (reuses ghash internally without allocating space for the value).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59502 954f8c5b-7b00-dc11-b283-0030488c597c
replace hashes with sets where possible.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59503 954f8c5b-7b00-dc11-b283-0030488c597c
minor changes to edgehassh/ghash
- no need to zero vars when freeing ghash
- de duplicate ghash remove code.
- edgehash clear now works more like ghash.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@59504 954f8c5b-7b00-dc11-b283-0030488c597c