Fix for [#34308] only half width of material list row is used for material name.

* Issue was caused in r54393. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54642 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for [#34099] Particles leaking from moving meshes

This was caused by a floating point precision error. During collision detection, Newton-Raphson iteration is used to find the exact time of the collision. But when using subframes, the initial Newton step was too small. Now the initial step is given in absolute units. When subframes = 0, this should behave almost the same as before.

Thanks to Janne Karhu, Lukas Toenne and Ton Roosendaal for their help with this patch, and to AutoCRC for funding.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54648 954f8c5b-7b00-dc11-b283-0030488c597c
minor change to own recent commit with transform fcurve centers and some style edits and typo corrections.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54649 954f8c5b-7b00-dc11-b283-0030488c597c
bpy.props.RemoveProperty() had incorrect docstring.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54650 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#34283] armature bones losing their roll setting upon translation in
edit mode

My earlier fix for [#33974] (in r.54061) was causing some problems where
manually specified roll values on horizontal or angled bones were getting reset.
This could be nasty as you might not notice the changes for a while (especially
when using stick bones without axes displayed).

I've now put in place a hacky compromise solution which should catch both of
these situations nicely. For z-axis (i.e. vertical) movements, the r.54061 fix
is used, while for everything else (moving or just touch-n-go), the old setting
is used.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54651 954f8c5b-7b00-dc11-b283-0030488c597c
fix for [#34283] wasn't working in my tests (attached to original report),
made bone roll get compatible angle values with the original roll.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54653 954f8c5b-7b00-dc11-b283-0030488c597c
Fixes for alpha mode do_versions code

Before this change only old flag "Premultiply" was used to
detect alpha mode, which is not enough actually.

Now the logic here is:

- If "Premultiply" was enabled it is likely float image with
  straight alpha, which shall be premultiplied before usage.

  In this case image/sequence Alpha Mode is set to Straight.

- Otherwise use default alpha mode for image format based on
  an extension. This could fail in some cases like TIFF, but
  this wasn't handled fully correct in older blender anyway.

Initial discovered issue was that EXR images saved in older
Blender versions were set to Straight alpha mode, which is
obviously a straight way to lots of headache.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54654 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34295] Color picker brightness to infinity
simply clamp the color to the buttons softrange since color conversion can cause the value to scale outside the intended button limits.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54655 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34249: collapse edges crash blender with a specific mesh

OpenMP block was using shared variable, which for sure leads to
threading issues.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54656 954f8c5b-7b00-dc11-b283-0030488c597c
Remove ztrans_hack. Looks like just keeping the angles compatible works well
enough.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54657 954f8c5b-7b00-dc11-b283-0030488c597c
Style tweak - missing braces


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54658 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#34320] Cross compiling with mingw-w64 on ubuntu
from Martijn Berger (juicyfruit)

applying since this is only corrects header case which is ignored on windows anyway.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54659 954f8c5b-7b00-dc11-b283-0030488c597c
make asserts that check for unit length vectors into a macro.
this was really not nice logic to try to fit into an assert.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54660 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34315: memory leak cancelling move to layer operator, after change to make
it not execute immediately when opening the popup.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54661 954f8c5b-7b00-dc11-b283-0030488c597c
Remove define which is not actually needed and could have been
conflicted with one from IMB_colormanagement.h

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54662 954f8c5b-7b00-dc11-b283-0030488c597c
revert own commit r54625, broke autocomplete.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54663 954f8c5b-7b00-dc11-b283-0030488c597c
Small correction to make strict compiler setup be happy

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54664 954f8c5b-7b00-dc11-b283-0030488c597c
internal: increase error threshold for normalize assert since normals converted from shorts are not always exactly unit length.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54665 954f8c5b-7b00-dc11-b283-0030488c597c
fix for apply rotation/location failing for surface object types (were recognized as 2d curves).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54666 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34033] Mesh customdata settings are missing
Mesh edge number buttons were removed when the custom-data layers weren't present.

More of a usability regression than a bug.


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