resolve build error in MSVC, was using a GNU C extension for ternary conditional.


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

Calculate dependent area based on distortion model rather than
using 15% of image resolution for this.

Some assumptions here:

- We're assuming real-life camera calibration is used here
- Maximal undistortion delta would be achieved on frame boundary
- Distortion fully goes inside frame

This makes it possible to approximate margin for distortion by
checking undistortion delta across frame boundary and use it
for dependent area of interest.

We do not use any formula-based equation here because we're likely
support other distortion models and in that case it'll be stupid
to try detecting formula here.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54622 954f8c5b-7b00-dc11-b283-0030488c597c
Correction to cmake rules for libmv/ceres

libmv still requires optimization switched off because
of some incompatibility of SSBA and MSVC optimizer which
makes bundle adjustment work just wrong.

This shall not be an issue for Ceres and no need to
disable optimization for extern_ceres

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54623 954f8c5b-7b00-dc11-b283-0030488c597c
Correction to previous commit, needed to tweak some include
directories after shuffling order of subdirectories and
compiler flags tweaks.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54624 954f8c5b-7b00-dc11-b283-0030488c597c
make autocomplete use unicode character stepping (needed for bugfix).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54625 954f8c5b-7b00-dc11-b283-0030488c597c
Fix [#34300] Slider for list of particle systems (keyed particles) is not doing anything. Navigating a list of more than 5 elements requires keyboard.

Systematically adding some custom id to template_list using default UI_UL_list class, this one is commoly used more than once in an area, yielding collision issues if they do not have a custom id...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54626 954f8c5b-7b00-dc11-b283-0030488c597c
Minor precision in template_list doc, to always use a custom list_id when using default UI_UL_list class.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54627 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34289: Wrong grid color on light background

Grid was blending with wrong theme color.

Since r53636 TH_HIGH_GRAD is used as a background and this
color shall be used for blending.

This is possible other usages of TH_BACK are wrong here as
well, but would want Antony to check on this.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54628 954f8c5b-7b00-dc11-b283-0030488c597c
pointcache: Set start frame soft limit to 1

Right now most simulations can't handle cache start frame < 1
unfortunately.

There are two main problems:
1. frame 0 is a special case so some simulations will just pop back to
their initial state on frame 0.
2. blender doesn't allow playing the animation starting from negative
start frames, so most simulations only work when baked and not during
regular playback.

Just change soft limit since sart frame < 1 can work in some cases, but
this needs to be fixed properly in the individual simulations if we
really want to allow it.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54629 954f8c5b-7b00-dc11-b283-0030488c597c
Make list_id mandatory when using default UI_UL_list class for a template_list.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54630 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34276: OpenGL render not doing color space conversion to linear correctly
with transparency, would show as too dark colors on edges.

Found a strange issue here though, the alpha value in the OpenGL render result
is not the same as the one specified in the material. It's not clear to me why
this happens, color space conversions should not influence the alpha channel.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54631 954f8c5b-7b00-dc11-b283-0030488c597c
fix bpy_extras.mesh_utils.edge_face_count_dict() helper api function.
it was using tessfaces when theres no need to.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54632 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34290: backface culling option in 3d view was not interacting well with the
option in the material in texture draw mode, now it always overrides the material.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54633 954f8c5b-7b00-dc11-b283-0030488c597c
Fix some popups being too small on retina display, among them the new image dialog.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54634 954f8c5b-7b00-dc11-b283-0030488c597c
Bug fix #34292

CTRL + MMB zoom in 2d editors now depends on 'max zoom' level. This makes
zooms in UI (very limited) go smoother, but for fcurve or timeline it's same.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54635 954f8c5b-7b00-dc11-b283-0030488c597c
checking for V3D_LOCAL was duplicated in transform.c, and both checks not quite correct.
- When checking edimode, make sure its mesh editmode.
- Graph editor supports this option but wasn't being checked.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54636 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#34303] Rotation fcurves don't work with transforming with individual centers


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54637 954f8c5b-7b00-dc11-b283-0030488c597c
Fix wrong alpha channel for OpenGL render results with transparent textures or
materials, the typical glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); blend
function does not give correct destination alpha.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54638 954f8c5b-7b00-dc11-b283-0030488c597c
Correction to own r44749 -- layers from view were always used,
shall use active layer now for real.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54639 954f8c5b-7b00-dc11-b283-0030488c597c
Force movie clips always use default alpha mode, before this straight
alpha was used for them which doesn't work for cleaned footage stored
in EXR file format.

Perhaps we need to support configurable alpha mode for clips, but
that's for later (maybe even after release),

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