Cycles: invert mist pass so that 0 is nearby and 1 is far away. This is the
opposite of Blender Internal but it makes more sense I think.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57295 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35671: automatic armature weights assignment crashed with an empty mesh.

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