fix for [#34440] motion blur (2d filter) not working in osx
thanks Jens Verwiebe for the tests and review.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54912 954f8c5b-7b00-dc11-b283-0030488c597c
Code Maintenance - Splitting up Armature/Pose Editing Files

This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).

In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
     - In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner

Notes:
* I've tried to ensure that the history of the new files has been maintained by
doing
   svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
   Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54913 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanups
* Replace magic numbers with enum-defines
* Remove superfluous return; statements (used as last statements in a few
"static void" methods)
* Remove some old unused/commented out stuff


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54914 954f8c5b-7b00-dc11-b283-0030488c597c
Properly prefixing name of exproted armature API


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54915 954f8c5b-7b00-dc11-b283-0030488c597c
Renaming the remaining PoseMode files for consistency (camelCase to
underscores_style)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54916 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#34465] Fix text editor bug: Crash when overwriting ascii character with multibyte character
from Shinsuke Irie (irie) 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54917 954f8c5b-7b00-dc11-b283-0030488c597c
fix for linking with recent armature refactor, was also missing file from CMakeLists.txt.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54919 954f8c5b-7b00-dc11-b283-0030488c597c
fix for regression since BMesh merge, selecting linked faces in face-mask mode was using an incorrect lookup on loops which made select-linked fail


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54920 954f8c5b-7b00-dc11-b283-0030488c597c
fix for bmesh regression similar to last revision r54920. only effected loading old blend files without edge data.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54921 954f8c5b-7b00-dc11-b283-0030488c597c
rst doc update: adding a link to Joystick class from bge.logic.joysticks
(so one can find more about the joystick class without having to search joystick)
code untested by the way. Sorry but I can no longer build sphinx docs here. I will try to fix that later.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54922 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34426] Manipulator handles drawn incorrectly by depth
original patch by Philipp Oeser (lichtwerk) with own changes.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54923 954f8c5b-7b00-dc11-b283-0030488c597c
Invalid Driver Targets are now indicated appropriately (using Red Backgrounds)
in the UI

This is the second part of the fixes for [#32492], making it easier to identify
which part of a driver (i.e. which of its targets) is causing problems

A number of additional/related changes needed to be made:
* Red-alert status for layouts is now propagated down to child layouts when they
are created. This is needed as otherwise some of the templates used in the Graph
Editor driver settings won't actually get the red-alert status flushed down to
them. Also, note that this status needs to be set before any widgets are added
to the layout, or else the settings aren't applied when the relevant widgets get
created.

* "Single Property" RNA-Paths resulting in out of bounds array access will now
trigger an error status and appropriate warnings

TODO:
* The error tagging doesn't get applied immediately after variables are created,
or their types changed
* There was also some other weirdness involved when a higher-value flag (1<<10)
was used for this setting, which needs further attention


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54924 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix: Types mismatch (flags and targetFlags were ints, but dtar->flag is a
short)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54925 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix: Invalid target tagging for "Distance" driver variable type only
highlighted the first target if/when both targets were empty.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54926 954f8c5b-7b00-dc11-b283-0030488c597c
LocDiff Driver Vars: Red-Alert is not needed on the space-selectors


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54927 954f8c5b-7b00-dc11-b283-0030488c597c
fix for harmless glitch rotating the camera in camera mode, having the center point so close to the viewpoint caused the helper line to erratically move about because of float precision.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54928 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33466] alt + mouse wheel

Alt+Mouse Wheel events depended on the button under the mouse being active, else it would change the current frame.
Button re-activation wasn't 100% reliable since it depends on fake mousemove events.

Now keep button active when its executed if the mouse stays over it.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54929 954f8c5b-7b00-dc11-b283-0030488c597c
Move radial distortion code to own templated function

This shall not lead to any functional changes, just
avoids radial distortion code duplicated in camera
intrinsics and bundling code.

For fancier bundle adjustment supprting different
distortion models this is not actually enough and
would need to make some bigger changes, but this
changes makes code a bit easier to maintain already.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54930 954f8c5b-7b00-dc11-b283-0030488c597c
Increase verbosity level for reprojected markers info

This information is useful, but in cases when you, say,
working on a bundler it's annoying to scroll all the
information up.

Now behavior would be:
- running `./blender --debug-libmv` will print all the
  debug messages
- running `./blender --debug-libmv --verbose 0` will
  print only debug messages from solvers, recosntruction
  and so, but will bypass final reprojection bunch of
  messages
- running `./blender --debug-lib,v --verbose 1` will
  include final reprojection messages.

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