Fix #36327: cycles render layers exclude layers animation did not work well.
This is kind of another way to animate layers which is disabled, but add an
exception to make this case work.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60023 954f8c5b-7b00-dc11-b283-0030488c597c
add angle_to_mat2 utility function.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60024 954f8c5b-7b00-dc11-b283-0030488c597c
correct own recent edits, area for text line numbers drawing was too small.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@60026 954f8c5b-7b00-dc11-b283-0030488c597c
uv-pack operator: option to rotate uv islands to fit in the optimal rectangle when packing.


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