Fix OS X build error in malloc code, and warning in rna.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60666 954f8c5b-7b00-dc11-b283-0030488c597c
* Fix Windows compiler errors after recent Lock-free memory allocator commit.
Patch by Sergey, thanks. :)

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60667 954f8c5b-7b00-dc11-b283-0030488c597c
* Code cleanup for M_PI code.

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60669 954f8c5b-7b00-dc11-b283-0030488c597c
add MEM_SIZE_OPTIMAL to avoid memory fragmentation & waste lost to slop-space.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60670 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: reuse rna_matrix_dimsize_NxN defines between RNA functions


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60671 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use const's for static arrays


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60672 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#37031] bones are not selectable in weight paint mode anymore


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60673 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#37032] Blener crashes when parent to new object


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60674 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#37030] Loop Cut and Slide doesn't clear header text if you click a blank area


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60675 954f8c5b-7b00-dc11-b283-0030488c597c
use BLI_bitmap for editmesh selection buffer to save some memory.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60677 954f8c5b-7b00-dc11-b283-0030488c597c
fix for select linked walking over the same faces multiple times. (caused gset assertion).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60678 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #37036, pack and refresh button not aligned anymore. Also add
operator for opening images in the image editor header, it's easily one
of the most common operations, don't see why it has to be only accessed
from menu.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60679 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#37038] User prefs > Input - Category names cut off


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60680 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: boxpack, pack struct and use unsigned ints


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60681 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36905: backport of fix in soc-2013-paint. This commit ensures that during color sampling the cursor of the current brush is disabled. This avoids sampling of the brush cursor for really small brushes. Only caveat is that if operator exec is called then cursor might be visible in new sample location. This is not so common though.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60682 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#37039] Resize lists by new grab handles puts file into unsaved state.

Simply do not enable undo for LISTBOX buttons (the same as ROUNDBOX & co). Many thanks to Campbell who did all the work here!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60683 954f8c5b-7b00-dc11-b283-0030488c597c
Fix FreeBSD build with recent malloc changes, patch by Shane Ambler.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60684 954f8c5b-7b00-dc11-b283-0030488c597c
UI: Fix SSS pressets' buttons not being aligned anymore (to be backported to 2.69).

Issue found out by DingTo.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@60685 954f8c5b-7b00-dc11-b283-0030488c597c
adding WITH_IMAGE_OPENIMAGEIO and removing the PSD build option
As per Brecht van Lommel's suggestion.

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