Bugfix [#32760] Crash on entering pose mode if motion paths have no baked points

Dunno how a file with this situation arose, but we now perform some more sanity checking to abort in this sticky situation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51072 954f8c5b-7b00-dc11-b283-0030488c597c
Some effect-less code cleanup...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51073 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32707: texture preview not loaded

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51074 954f8c5b-7b00-dc11-b283-0030488c597c
Booleans: epsilon for planar checks seems a bit too small for single precision math

This could solve issue #32748: Boolean Modifiers Making unneeded edges?

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51075 954f8c5b-7b00-dc11-b283-0030488c597c
Fixed compilation error on widows

Was caused by mixing up own C-API typedefs with OCIO's

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51076 954f8c5b-7b00-dc11-b283-0030488c597c
more improvements to logic for selection/projection: replace ED_view3d_project_short_global() with ED_view3d_project_int_object() in some places.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51077 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32735: GLSL shadows not working together with X-ray drawing.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51079 954f8c5b-7b00-dc11-b283-0030488c597c
Fix related to #32734: crash saving blend file from render_pre callback. Not
sure I want to recommend anyone doing this, but the fix is simple.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51080 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32734: Object.to_mesh() gave wrong user count for curves/surface/text objects.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51081 954f8c5b-7b00-dc11-b283-0030488c597c
Clean up in "add object" code:
* Get rid of ED_object_add_generic_invoke() and all invoke callbacks using it, it was doing nothing exec() callbacks would not do. In fact, its only action (setting part of common add ops properties, like loc, layers, etc.) was needed too by direct exec call, so it was done twice in case of using invoke()!
* Replace custom invoke code for metaballs by WM_menu_invoke helper (as already used by lamps).
* Add a new OBJECT_OT_empty_add op, to allow direct addition of empties of a given drawtype.
* And some general code cleanup (like trailing spaces, empty lines, ...).

Did quite a bunch of tests/verifications, but obviously could not tackle all possible scenarios... Anyway, if any, bugs should arize quite quickly (but I don’t expect any! :p ).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51082 954f8c5b-7b00-dc11-b283-0030488c597c
Typo fix: Tooltip for "Offset Factor" for FollowPath constraint referred to
"bone" instead of "curve"


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51083 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #32770: iTaSC IK solver not working correct with bones that have stretch with
have all rotation axes disabled.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51084 954f8c5b-7b00-dc11-b283-0030488c597c
Warning indicators for animators when Auto Keying is enabled during transform

Recently on the bf-funboard list, there have been some requests for clearer
indications for animators that autokeying has been enabled when transforming so
that corrective action can be taken sooner if this wasn't expected. This is
especially important in distributed+collaborative environments where multiple
artists may work on a single shot file: someone working on a shot from
another animator may not be aware that autokeying was enabled, thus accidentally
setting a whole bunch of extra keyframes.

In this current incarnation, we display using red (not hardcoded, but using an
existing theme color) a solid 1px border around the 3D view while transforming
with autokeying enabled. In addition to the border, a blinking indicator (record
icon + "Auto Keying On" text) appear in the top right corner, as inspired by the
traditional recording indicator icons on camcorders.



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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51086 954f8c5b-7b00-dc11-b283-0030488c597c
Follow Path Constraint - "Animate Path" Operator

Added a convenience operator to the Follow Path constraint which adds a F-Curve
for the path (or the operator's "fixed position" value if no path is assigned),
with options for setting the start frame and length of motion. This makes it
easier for common users to just set up a quick follow-path animation where the
camera (e.g. flying around a set over certain number of frames).

A key advantage of this is that it takes care of the underlying math required
for setting up the generator curve accordingly (I've got some plans for making
this a bit friendlier to use later). Now, animating the paths is a one-click
operation, with the start and length properties able to be controlled using the
operator properties.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51087 954f8c5b-7b00-dc11-b283-0030488c597c
Fix generated texture coordinate issue after "from dupli" option was added.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51088 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup
* Added/fixed some comments
* Swapped order that invoke/exec calls are defined in the operator definitions
to reflect flow better


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51089 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use functions to initialize selection user data structs, use radius-squared for circle select comparisons.
edge_fully_inside_rect() & edge_inside_rect() args were shorts when all callers were passing ints.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51091 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: de-duplicate enum.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51092 954f8c5b-7b00-dc11-b283-0030488c597c
add armature_foreachScreenBone(), use for lasso and circle select.
also add boundbox checking for lasso select.


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