minor change for high res displays, scale fcurve handles and view3d axis size.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57887 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35914] Blender crashes when trying to use vertex selection masking on a copy directly after using SHIFT+d


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57888 954f8c5b-7b00-dc11-b283-0030488c597c
opengl debug info, make GPU_state_print() only show values in arrays that are set. (was print 32 values every time)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57889 954f8c5b-7b00-dc11-b283-0030488c597c
add some missing members to opengl debug print, also use a macro to avoid passing each arg twice.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57890 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35911] Show weights not working with a weight edit modifier in edit mode


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57891 954f8c5b-7b00-dc11-b283-0030488c597c
tweak to commit r57891, dont draw hidden faces/edges in editmode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57892 954f8c5b-7b00-dc11-b283-0030488c597c
add type checking assert in bmesh operator iterator.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57893 954f8c5b-7b00-dc11-b283-0030488c597c
bridge tool: calculate face normals before triangulating, own error when removing normal recalc from the bmesh operator.
also rename `Fill Grid` -> `Grid Fill` to match `Beauty Fill`


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57894 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35858] there were two bugs here, hidden faces were occluding in vertex selection mode.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57895 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for Make Local -> All not working correct with multy-user datablocks

Make Local operator uses BKE_library_make_local function if all the
datablocks needs to be made local. And this function was calling
id_clear_lib_data for every datablock, which only clears library
data. But this function doesn't work correct for datablocks which
areshared by multiple users (this is also mentioned in comment
for this function).

This lead to situations when two datablocks shares the same runtime
data leading to crashes later. For example making everythig local in
scales cycles scene from durian ends up in a crash when toggling
rig edit mode.

Solved by using id_make_local instead of id_clear_lib_data, which
will ensure all the data are nicely expanded and made local.

Checked by Brecht, thanks fr the review!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57896 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#35936] Can't create new vertex group when using Ctrl G menu

This was caused by r.57812

There were two problems here:
  1) vertex_group_vert_select_unlocked_poll()  had faulty logic which meant that
it always failed when there were no vgroups present yet - the final return
always just fell through
  2) Since the "Assign to New Groups" option was actually implemented using the
same operator as "Assign to Active Group" (just with an extra parameter set), if
the active group was locked, it was not possible to "Assign to New Group" (even
though a new group would not be locked).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57901 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#35887] Keyframes inserted at wrong time on offsetted NLA Strips when
using "Auto Keying" + "Insert Available Only"

Patch from Campbell.

The problem was that NLA offset/mapping correction was only done when no
destination action was supplied to insert_keyframe(). In most cases, this is not
a problem, since all normal keyframing goes through keyingset or the insert-
button operators, and these just pass action=NULL (since they're too lazy to
look it up). However, there is one situation where this bug gets triggered (the
specific combination of autokeyframing and "insert available only"), where the
caller of insert_keyframe() actually passed in an action (to prevent it from
creating one itself!).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57902 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#35856] Bones gets scaled chaotically when during NLA Strip Blend In/Out

This was one of the consequences of r.57333 (i.e. influence shouldn't be ignored
on the first strip that animates a channel), as scale should really default to a
base value of 1 (instead of things being blended against 0 as per all other
properties). The end result was that bones were getting scaled to zero here when
the influence of their strip fell to zero.

Now, we use the RNA default values of properties to initialise their initial
values. This may/may not work well in all cases:
1) For properties which don't have the appropriate RNA defaults set, this will
be problematic. But, most properties people are likely to animate here I think
are already set up correctly.
2) It may not always be nice to have values "snapping back" to default values.
In this case, you should still be defining a strip at the bottom of your NLA
stack which defines what the appropriate rest poses *should* be for your shot.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57904 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#35744] FCurve select changes on Graph Editor Resize

Selection state of F-Curves is lost when resizing the Graph Editor.

The problem was that SIPO_TEMP_NEEDCHANSYNC was getting set in the graph_init()
callback, which gets called everytime the view resizes, and not just the very
first time this happens. However, setting this flag forces the selection state
to the updated/pulled from the scene data.

In the past, it was necessary to set this flag so that we could force F-Curve
colors to get initialised correctly. However, things probably changed at some
point, so this behaviour is no longer needed. At worst now, opening a new graph
editor may not show F-Curve selection correctly synced with the viewport, though
that's easily worked around by reselecting whatever it is in the 3d view.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57905 954f8c5b-7b00-dc11-b283-0030488c597c
Fix incorrect GLSL bump mapping in editmode when the UV coordinates are
flipped, was not passing sign on to GLSL shader.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57906 954f8c5b-7b00-dc11-b283-0030488c597c
NLA Bugfix: When clicking on a channel name in the channel list while still in
tweakmode, this will now result in tweakmode being exited instead of going into
a weird limbo-land where channel selection has changed (but tweakmode is still
active but not drawn)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57907 954f8c5b-7b00-dc11-b283-0030488c597c
Restrict Weight Edit Panel to mesh/lattice Edit and Weight Paint vertex selection mode

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57909 954f8c5b-7b00-dc11-b283-0030488c597c
move api functions from r57909 into BKE.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57910 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#35939] [Edit - Vertex mode] [Select]-[Mirror] did not returns right result.


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