fix for own error in normal-recalc r58077, initial face flipping wasn't checking against face-island center.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58099 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36008] Can't set values higher than 1.0 in HSV colour picker (But can in RGB) - also some strange behavior


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58105 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36066] crash when Tab out text object
the way Curve.len is used at the moment is really stupid, calculate string size on save for now, but should really store the length in bytes and total number of characters.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58106 954f8c5b-7b00-dc11-b283-0030488c597c
fix error where if you tried to bridge an odd number of loops after bridging pairs, there was no way to change the options.
eventually I think the operator api should support this but for now return finished.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58107 954f8c5b-7b00-dc11-b283-0030488c597c
fix for error in vertex_group_vert_select_unlocked_poll, check for non existing group wasn't right.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58108 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36039] Texture paint bug with face selection on subdivided object
original patch by Antony Riakiotakis, made some edits to only check origindex when needed.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58109 954f8c5b-7b00-dc11-b283-0030488c597c
Fixed more threading issues with metaballs

This time issue was caused by static variables used in
BKE_scene_base_iter_next function.

Change is not so much ultimate actually, but didn't
find more clear solution for now. So the changes are:

- Wrap almost all the static variables into own context-
  like structure, which is owned by the callee function
  and getting passed to the iteration function.

- Recursion detection wasn't possible with such approach,
  so recursion detection still uses static in_next_object
  variable, but which is now stored in thread local
  storage (TLS, or thread variable if this names are more
  clear for you).

This makes code thread-safe, but for sure final solution
shall be completely different. Ideally, dependency graph
shall be possible to answer on question "which object is
a motherball for this metaball". This will avoid iterating
via all the bases, objects and duplis just to get needed
motherball.

Further, metaball evaluation ideally will use the same
kind of depsgraph filtering, which will get result for
question like "which objects belongs to this group of
metaballs".

But this ideal things are to be solved in Joshua's and
mind GSoC projects.

Tested on linux (gcc and clang) and windows (msvc2008),
hopefully no compilation error will happen.

Thanks to Brecht for reviewing the change and getting
feedback for other possible ways we've dicussed!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58110 954f8c5b-7b00-dc11-b283-0030488c597c
add checks in paintface_flush_flags for faces which have no original index values. (could give out of bounds writes)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58111 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36050, backdrop not working. The compositor backdrop requires a restart of the compositing job, which does not happen if just enabling backdrop after adding a viewer node. To fix this added the appropriate notifiers in a update callback for the show_backdrop property.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58113 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36030: datablock drag and drop to buttons not working with a certain number
of objects in the scene.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58120 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36055] Edge/Face Info display on wrong position with key frames
display editmesh stats with deform modifiers.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58121 954f8c5b-7b00-dc11-b283-0030488c597c
Fix blender environment map texture looking different on the first render with
an image file, the image extend is set automatically when render starts but not
when the image was never loaded yet.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58122 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36004] Vertex parent on curve point results in blank 'parent_type' on child object


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@58123 954f8c5b-7b00-dc11-b283-0030488c597c
Partial revert of rev58110

There's one thing we didn't foresee from the beginning,
which is apparently TLS is only available in OSX starting
from version 10.7, and we still do support of 10.6.

After recent Brecht's changes about locked viewport
while initializing BI render this TLS is not needed
in trunk anymore. So reverting this chunk of base
iteration to use static variable. But leaving all the
other static variables warped into context still, it
should help a bit in the future refactor.

Real fix would be to have some kind of graph context
evaluation structure which would be passing to update
routines (which will solve threaded mballs update) and
making depsgraph responsible for getting a motherball.
But this is all for GSoC project.

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