knife tool modifications

from user freedback it seems there are 2 use cases, both valid.
* Select geometry and cut the selection in half (as 2.4x worked)
* Point-to-point define the faces to cut, dont cut through everything (only cut what you see).

With the second, since you are already selecting the edges to cut and snapping to them. only cutting the selecting is limiting/annoying.


Modifying these options while the knife tool runs doesn't work well, so expose under 2 keys, K, Shift-K.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45802 954f8c5b-7b00-dc11-b283-0030488c597c
knife tool now selects newly cut edges.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45804 954f8c5b-7b00-dc11-b283-0030488c597c
knife tool: store color once on initializations, de-select only when cutting selected.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45805 954f8c5b-7b00-dc11-b283-0030488c597c
knife tool: use the knife mouse cursor, dont store the context in the knife tool data, also rename struct camel case (follow own style guide)


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45807 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for particle dupli group relative offsets. The relative transforms of objects in the instanced group were not scaled according to the particle size, which would be expected when rendering as 'Whole Group'. Requested by Francesco Siddi (fsiddi) over IRC.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45809 954f8c5b-7b00-dc11-b283-0030488c597c
knife tool alpha values where being set to zero (intersection points weren't visible), error made when converting to theme colors.

also minor bmesh style cleanup.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45811 954f8c5b-7b00-dc11-b283-0030488c597c
refactor rip tool out into vert/edge functions, was getting too unweildy having them mixed in.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45812 954f8c5b-7b00-dc11-b283-0030488c597c
Knife tool: Increase the header string length to avoid clipping the message.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45813 954f8c5b-7b00-dc11-b283-0030488c597c
aparently `yards` are not used a lot, suppress their use in button display (input still knows about them) - was reported as a bug.

also fix minor rip bug where active selection was lost.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45814 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#31036] image.gl_load() consistently segfault at gluBuild2DMipmaps

incorrect argument to gluBuild2DMipmaps()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45815 954f8c5b-7b00-dc11-b283-0030488c597c
attempt to fix [#31033], cant redo the bug but button layout wasnt great
- no more blank space under XYZ
- scales with DPI


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45816 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: prefer BM_face/edge/vert_select_set() over BM_elem_select_set() when the type is known (saves switch statement check on the type).

Add asserts so the correct types are ensured.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45817 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#31008] IK armature resize goes ugly (Pose mode resize).

This affected legacy solver. Note that even if I don't expect any, this fix *may* break some other IK setups, so animators, please check your IK rigs using legacy solver. ;) Easy to revert if needed, anyway.

Note that iTaSC solver is also buggy with some scaled parent, but here IK'ed bones just can’t get scaled in any way (either from parent or from there own transformation)... Will try to find what's happenning, though the code is even harder than legacy solver to follow :/

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45818 954f8c5b-7b00-dc11-b283-0030488c597c
fix for error using uninitialized variable with shape key conversion.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@45819 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup: pep8, also quiet compiler warning.


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