node tree functions for copy/free now support optional ID user count management,
this is not used yet, so no functional changes.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50105 954f8c5b-7b00-dc11-b283-0030488c597c
fix for bug where scene copy and free didn't manage ID users.

you could for eg, make a full copy of a scene, then manually remove its compo nodes - which would give invalid zero user count.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50106 954f8c5b-7b00-dc11-b283-0030488c597c
all areas of blender now do node tree id user count management, except for some exceptions like making a node tree local and material clipboard.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50107 954f8c5b-7b00-dc11-b283-0030488c597c
error message when an addon was missing register/unregister functions whasnt very good (didnt point to file with the error)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50109 954f8c5b-7b00-dc11-b283-0030488c597c
fix for blend_render_info.py not closing file & some edits to comments.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50110 954f8c5b-7b00-dc11-b283-0030488c597c
fix for rare crash in cycles BVH tree packing.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50111 954f8c5b-7b00-dc11-b283-0030488c597c
add new mask blend mode: 'Merge Subtract'. gives better results when using feather on overlapping masks when one subtracts from another.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50112 954f8c5b-7b00-dc11-b283-0030488c597c
fix for glitch with mask refresh in the image view when lock was disabled - it would never update the image, (now check G.moving)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50114 954f8c5b-7b00-dc11-b283-0030488c597c
Fix part of #32377: TIFF not saving on windows to paths with special characters,
and DDS should not be in the list of file types because we can only load those
currently.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50115 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32201: particle size compatibility broken for object/group duplication.

After 2.63 there was a bugfix to take object scale into account for the duplicated
objects, but this breaks compatibility on earlier files. Now there is an option to
control if the scale should be used or not.

Scale is used by default on newer files, and not used on older ones.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50116 954f8c5b-7b00-dc11-b283-0030488c597c
lasso select works in the node editor again, Ctrl+Alt+LMB, Ctrl+Alt+Shif+LMB to deselect


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50117 954f8c5b-7b00-dc11-b283-0030488c597c
Sequencer: fix for incorrect proxies rendering after some recent refactor

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50118 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32262: mesh bridge between edge loops failed to find a good edge matching
in some cases, in particular when the the edge loops were not planar.

Now rather than finding the shortest distance between two vertices, one from
each edge loop and using that as a starting point, it now finds the smallest
sum of distances between all vertex pairs that would be connected.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50121 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32309: missing shortcuts in sculpt mode Hide/Mask menu. Keymap poll was too
strict, only has to check if we are in sculpt mode, not if the mouse is in the
main region too.

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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50123 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32301: mesh select more/less not taking hidden vertices/faces into account.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50125 954f8c5b-7b00-dc11-b283-0030488c597c
hook menu was using last remembered use_bone setting


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50129 954f8c5b-7b00-dc11-b283-0030488c597c
Fixed regression introduced in 50107

Shader preview job localizes material without referencing it as a user,
so don't need to unreference itself as a user from this material.

Added BKE_material_free_ex function which could skip user dereferencing.
This also removed old hack with mtex users.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@50132 954f8c5b-7b00-dc11-b283-0030488c597c
Fix compilation on MinGW after recent utf 16 fixes (possibly win32 too). gcc ostream does not support wchar_t, I hope it works as expected with unicode filenames.

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