fix for problem with creating weight-paint preview.

In the case where the modifier stack didnt need deform-verts to calculate,
they would not be available for the preview either.

This fixes a bug caused by r57206 which set mirror to preview so the mirrored
weights would be displayed, but it only worked when there was an armature after it, see [#35545].


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57419 954f8c5b-7b00-dc11-b283-0030488c597c
internal change to searchbox: store the active search index rather then index + 1, simplifies checks.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57420 954f8c5b-7b00-dc11-b283-0030488c597c
missed in last commit, avoid writing into the string when comparing.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57421 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35713] Set Origin not waiting for user input.

Only activate search-box items on mouse-release,
Otherwise this gives odd behavior when using the operator-search popup since some tools expect the mouse buttons not to be held when activating which includes operators that have their own popup menus.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57422 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35346] Python: still UI issue with popup and dropdown list


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57425 954f8c5b-7b00-dc11-b283-0030488c597c
Safety check for NodeTree.links.new function: Added NEVER_NULL flags to from_socket/to_socket arguments to make sure the function doesn't crash when passing None/NULL.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57426 954f8c5b-7b00-dc11-b283-0030488c597c
Fix crash in movie clip node when ibuf fails to load.

Was a stupid mistake in another fix here :(

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57427 954f8c5b-7b00-dc11-b283-0030488c597c
Removed the Material Boundary option from the edge detection options in
the Parameter Editor mode.  The Material Boundary toggle button takes
effect only in the Python Scripting mode.  Instead the Parameter Editor
mode automatically determines which edge types need to be computed on the
basis of user-specified line selection criteria in terms of edge types.

Problem report from Light BWK through personal communications, thanks!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57428 954f8c5b-7b00-dc11-b283-0030488c597c
fix for pythons __dir__ returning registrable functions on class instances (which may not have the functions defined).
gave odd behavior of including members in __dir__ that couldn't getattr()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57429 954f8c5b-7b00-dc11-b283-0030488c597c
Added NULL check for socket type make_socket_interface

Without this check it's easy to crash blender by passing
non-existing socket type to sockets.new() function.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57430 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: also fix crash in GPU_state_print(). and confine to debug mode builds.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57431 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35733: lamps on render layers that are both excluded and used for masking
should not be used, same as emissive meshes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57432 954f8c5b-7b00-dc11-b283-0030488c597c
handy function for getting the 2d camera coords for a worldspace location.

 bpy_extras.object_utils.world_to_camera(scene, obj, coord)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57433 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35729: cycles normal maps not showing properly in preview render.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57434 954f8c5b-7b00-dc11-b283-0030488c597c
minor edits to world_to_camera() utility function, include Z so you can tell if the points in font of the camera and avoid divide by zero.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57435 954f8c5b-7b00-dc11-b283-0030488c597c
Rephrased error message for clarity

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57436 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35730: cycles not rendering dupliverted metaball, needs another special
exception.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57437 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35735: blender internal viewport rendering was missing SSS update when
changing angle of view.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57438 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35664: blender internal material index pass + ztransp + multiple materials
assigned to a mesh did not work correct.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@57439 954f8c5b-7b00-dc11-b283-0030488c597c
fixes for using scaled cameras
- ED_view3d_from_m4() got incorrect rotation from scaled cameras, was noticable with smoothview transitions.
- when you lock the camera to the view, any view edits would reset the cameras scale to 1.
- another problem with view locking if the camera was scaled and had a parent, the parent would be transformed incorrectly.
- fly mode was chaning object scale a little over time, now restore after applying scale so it never changes.


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