fix for crash in python matrix utility functions .inverted/adjugated/transposed if the matrix has a read callback and fails.
also replace DM_get_poly_data_layer with dm->getPolyDataArray() since this is the convention in subsurf code and the functions now added.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51779 954f8c5b-7b00-dc11-b283-0030488c597c
add assert if zero is passed to string copy functions, would copy into first byte anyway.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51780 954f8c5b-7b00-dc11-b283-0030488c597c
don't write tessface customdata layers, since tessfaces are not written either.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51781 954f8c5b-7b00-dc11-b283-0030488c597c
make use customdata typeoffset more, add an assert to ensure its to date.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51782 954f8c5b-7b00-dc11-b283-0030488c597c
some edits missed from last commit.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51784 954f8c5b-7b00-dc11-b283-0030488c597c
fix for crash in own commit r51773. drawing VBO's used the wrong origindex.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51785 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for #29056: NDOF motion events not configurable in user preferences.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51786 954f8c5b-7b00-dc11-b283-0030488c597c
UI: fix for menu scrolling when window is too small. It was not working well
with arbitrary button layouts like multi column menus, because it was making
assumptions about position of previous/next buttons which doesn't work in
general.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51787 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup and correct own invalid comment.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51788 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #31482: menu with scrollers when window is too small, didn't auto scroll
when using the arrow keys or mouse wheel to activate the next item.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51789 954f8c5b-7b00-dc11-b283-0030488c597c
fix for assert when rendering with cycles, caused by my recent commits.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51790 954f8c5b-7b00-dc11-b283-0030488c597c
fix for asserts caused by own recent commits to use customdata typemap.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51791 954f8c5b-7b00-dc11-b283-0030488c597c
no longer use 'check_existing' to see if we need to have a save popup, instead use 'exec' operator on a saved file and
invoke on unsaved files.

correct missing memset --> CustomData_reset switch too.


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

(since 2010)

- Using 2-button mouse emulation (common for tablets)
- Press LMB, start painting, press ALT, release LMB
- This kept painting to run, since the release event was a MMB,
  not handled by paint code.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51793 954f8c5b-7b00-dc11-b283-0030488c597c
Fix blender internal strand render issue with deep shadow buffers, and AA samples
smaller than the number of shadow sample buffers. There was not enough shadow in
such cases, as some of the sample buffers were not filled in.

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

Holding down non-modifer keys was generating double-clicks - my fault!



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51795 954f8c5b-7b00-dc11-b283-0030488c597c
add IDP_MergeGroup(dst, src, overwrite)  function,
like PyDict_Merge()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51796 954f8c5b-7b00-dc11-b283-0030488c597c
code style: use switch for IDP_EqualsProperties()


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