Fix #35160: cycles was rendering glossy BSDF's with zero roughness too rough
after a bugfix for precision issues with low roughness. Now it renders them as
perfectly sharp which avoids the problematic calculations rather than increasing
the roughness.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56478 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35194] Change view while LoopCut is active breaks the cut options

use edge-index rather then mouse coords for loopcut so the viewport doesn't interfere.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56479 954f8c5b-7b00-dc11-b283-0030488c597c
bge py api: raise an overflow exception when assigning a float to a bge object which is out of the float range.
also avoid raising exceptions by ConvertPythonToValue when they will be ignored.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56480 954f8c5b-7b00-dc11-b283-0030488c597c
remove unused random number generator, thanks Bao2 for spotting.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56481 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for shaders.py based on code review comments from flokkievids.
Only the suggested changes that cause backward incompatibility were considered for now.

* Removed pyFXSThicknessShader that is identical with pyConstantThicknessShader.

* Swapped the order of two arguments of the pyDecreasingThicknessShader constructor
in line with other shaders taking the same arguments.

* Made module functions smoothC and get_fedge into methods of relevant shader classes.

* Removed pyExtremitiesOrientationShader that relied on undefined Stroke methods.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56482 954f8c5b-7b00-dc11-b283-0030488c597c
Minor code clean-up.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56483 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34889: negative lights not working in glsl view and game engine.

Patch #35197 by Tyler Seacrest.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56484 954f8c5b-7b00-dc11-b283-0030488c597c
Possible fix for #35198: uninitialized memory access with background multiple
importance sampling + OSL.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56485 954f8c5b-7b00-dc11-b283-0030488c597c
knife sort_by_frac_along was re-calculating the reference factor for every test, change to only calculate once and use line_point_factor_v3().
also add zero division check for line_point_factor_v3() since the 2d version already checked for this.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56486 954f8c5b-7b00-dc11-b283-0030488c597c
disable view3d dolly, move, pan -- when the view offset is locked, also corrected fly modes offset lock check
and added ED_view3d_offset_lock_check() to reuse between functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56487 954f8c5b-7b00-dc11-b283-0030488c597c
correct own recent commit, confused totloop with dm_totloop, rename vars & correct even though in this case the error was harmless.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56488 954f8c5b-7b00-dc11-b283-0030488c597c
One-liner fix for part of regression of nodes UI translation (since new pynodes): add menu entries are translated again.

The sockets' names remain untranslated currently, investigating whether this can safely be fixed at this stage too...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56489 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for recent glossy BSDF fix, color ramp test file was rendering different.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56490 954f8c5b-7b00-dc11-b283-0030488c597c
Second part of fix for regression of nodes UI translation (since new pynodes): add back sockets translation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56491 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35207: addition to previous fix to avoid OSL getting uninitialized
ray differentials for lighting, which could cause bad texture filtering
artifacts or performance.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@56492 954f8c5b-7b00-dc11-b283-0030488c597c
fix for mistake in own recent commit, broke operator search (r56465).


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