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@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@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@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@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@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@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@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@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@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@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@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@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@58124 954f8c5b-7b00-dc11-b283-0030488c597c
Fix missing cycles viewport update when changing manual texture space
location or size in the properties editor.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58128 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for bug #36009: Rendered ortho view messes up Freestyle lines in 3D viewport.

Clipping start is negative when the viewport preview is used with the orthographic view,
while Freestyle assumes that imported mesh data are in the camera coordinate system
with the view point located at origin.  The present solution is to adjust the clipping
start/end and introduce a Z-axis offset for mesh vertices so as to satisfy the assumption.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58129 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#36073] Changing list items misses undo push


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58130 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #36075: editing shading nodes could still crash blender internal rendered
draw mode. This happens because it uses node data structures in threads, now
it does same as preview render, which is to immediately stop the render thread
when e.g. deleting nodes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58132 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35948] Toggle-Draw AutoKeyframe Bug


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58134 954f8c5b-7b00-dc11-b283-0030488c597c
draw loopcut display on the deformed mesh when in editmode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@58135 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35406] Hair puff brush bug
- puff was interpolating hair that made longer strands cirl up.
- also fixed problem with puff-volume option, it was over-accumulating so unselected parts of the hair would have too much offset applied.


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