fix for 2 crashes from missing NULL checks.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44722 954f8c5b-7b00-dc11-b283-0030488c597c
fix
- access to a meshs editmesh before the pointer was checked to be a mesh.
- uninitialized memory use in transform (not a problem practically but nice to quiet the error in valgrind).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44723 954f8c5b-7b00-dc11-b283-0030488c597c
Many vertex group functions assumed mesh object when lattices could be operated on too.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44724 954f8c5b-7b00-dc11-b283-0030488c597c
use BLI_path_cmp() rather then strcmp()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44725 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup - remove unneeded ';'s


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44726 954f8c5b-7b00-dc11-b283-0030488c597c
building without python works again, cleanup bmesh include paths (cmake and scons).


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44728 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: duplicate checks and double assignments.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44730 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: use named values for options in DerivedMesh drawing.

The DMSetDrawOptions[Tex] callbacks return 0 (skip), 1 (draw), or 2
(either stipple or skip mcols.) In the CDDM, EDDM, and CCGDM draw
functions, as well as the callbacks in drawmesh/drawobject, replace
these numbers with values from an enum, DMDrawOptions.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44731 954f8c5b-7b00-dc11-b283-0030488c597c
Compilation error fix for game engine caused by recent DM refactoring.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44732 954f8c5b-7b00-dc11-b283-0030488c597c
Another fix due to recent DM refactoring, for compilation of navmesh...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44733 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #30467: UV/Image Editor: Scope: Opacity Values maybe wrong

Internally vector and waveform opacities are stored as float in 0..1 range
and the same range is exposed to the UI.
From file compatibility POV decided to change prop's type from percentage
to factor so it'll be nice slider with 0..1 range without confusing percentage
symbols (which should be quite easy to follow) and both forward and backwards
compatibilities are here.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44734 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #30464: Confusing lack of label for Fluid "use"

It was indeed not clear at all what that label-less check box does.
Move it to next row (to prevent fluid type menu be too narrow) and
use label default for it.

Also don't create second column which is empty for outflow fluid type.

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

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44736 954f8c5b-7b00-dc11-b283-0030488c597c
Partial Bugfix [#30097] : Current frame indicator on Motion Paths drawn
incorrectly

When the current frame occurs outside the current visible range a given motion
path, the point lookup was seeking past the ends of the path's point cache,
causing sporadic flickering of current frame indicator at 0,0,0.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44737 954f8c5b-7b00-dc11-b283-0030488c597c
Knifetool: change ESC to mean cancel, not confirm.

This corresponds to the more usual convention.
There was no key connected to Cancel, and we already
have Return, Numpad-Return, and Right-click for confirm.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44738 954f8c5b-7b00-dc11-b283-0030488c597c
Fix ##30455: Orthographic grid alignment jumps/shifts when zooming

Issue was caused by precision errors with floats.
Made internal grid drawing stuff using doubles and also added some
functions to multiply double vector by float matrix which also makes
all intermediate calculation in doubles.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44739 954f8c5b-7b00-dc11-b283-0030488c597c
Modified behaviour of the link-insertion operator (drag on link, request by Sebastian Koenig). This would previously attempt to find a socket with exactly matching type to the from/to sockets of the cut link, but this is annoying because it often links to the "secondary" sockets, such as Factor input in the Mix node. New behaviour is to choose the input/output for reconnection based on the "highest" (= most important) socket types (in order color, vector, value), like the autoconnect operator (FKEY) also does. It is far from ideal and will probably not work in all situations either, but until we have a detailed design for "best sockets to auto-link" this will have to do.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk@44740 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #30489: Loop Cut by Typing Numbers Is Limited to 32?

Increase numbering input of number of loop cuts to 130 as it was in 2.49.
Also display count of cuts in a header.

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