code cleanup: use bool where values are true/false, for view3d and related functions.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55453 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34700: cycles depth of field now works with orthographic cameras too.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55454 954f8c5b-7b00-dc11-b283-0030488c597c
fix for incorrect use of 'bool', also fix 2 older bugs in fly mode.
- panning didnt keyframe translation animation.
- when checking to key translation: speed `float` was converted to an `int` then treated as a bool, now check (speed != 0).


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55456 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#34688] Auto-Keying doesn't include custom properties when pasting poses

Previously, Paste Poses only used the LocRotScale Keying Set for autokeyframing
purposes. This was fine for most purposes, but with many rigs these days also
using custom properties for important posing functions, it's important that we
include those here too.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55457 954f8c5b-7b00-dc11-b283-0030488c597c
Driver error warnings are now only printed to the console when Blender is run
using the -d flag

This prevents a stream of error messages flooding the console when working with
particular rigs which may have a few broken controls. In general, riggers now
have a better alternative by using the filtering tools in the Graph Editor.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55458 954f8c5b-7b00-dc11-b283-0030488c597c
Tweaks to movie clip prefetching after discussion with Sebastian

Don't use sequencer's Frames Prefetch option and rather fill the
whole cache with frames.

Since movie clip is not "classical" prefetcher (it doesn't do
anything while playing back) and main purpose is to speed up
reading for further tracking and so, such a change seems logical.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55459 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34707: Blender crash on enabling of boolean modifier

Stupid mistake by my own with recent Carve update which
undid fix for MSVC STL library.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55460 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix: Transform autokey warning indicator text was getting clipped prematurely

After quite some time debugging going back through previous commits for this
feature and digging around the internals of the blenfont,I finally found the
culprit. It turns out that there was just a single line missing between
BLF_width_default() and BLF_width_and_height_default(), which caused the widths
returned to understimate the space required or so, causing text clipping. The
offending line probably correcting for different DPI scaling values.


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

Using MultiSample, the code that inspects Z buffer values fail, like for grease pencil
drawing on "Surface".

It appears to me that all this depth draw/read code is ignoring gpu offscreen entirely.
This should be confirmed by Campbell though :)

I'm also quite unsure why this code exists, related to other tools that use
depth too (particles, sculpt). Good to mark down for our viewport recode.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55462 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for extra string width padding in ui_text_icon_width, causing labels in right-aligned layouts show an annoying gap. If the layout is right-aligned, make the text button align right as well, so text is drawn at the right side of the alloted rect.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55463 954f8c5b-7b00-dc11-b283-0030488c597c
Add a little bit of space between socket layouts on nodes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55464 954f8c5b-7b00-dc11-b283-0030488c597c
py api: add Object.update_from_editmode(),
Useful for python exporters to avoid toggling editmode on export, moved into own function ED_object_editmode_load(obedit).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55465 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: remove double call to BKE_node_instance_key(), rename ruler (lots of tools are 3d :)), and redundant assignment.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55466 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: rename editmode functions so we have ED_object_editmode_load/enter/exit


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55467 954f8c5b-7b00-dc11-b283-0030488c597c
revert edit from r55461, causing build error on some systems.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55468 954f8c5b-7b00-dc11-b283-0030488c597c
Render border + crop will be handled correct in compositor now

This commit simply implements mapping from centered cropped canvas
to a full-frame coordinates, so operations like alpha-overing render
result on top of image will be properly aligned.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55469 954f8c5b-7b00-dc11-b283-0030488c597c
use clip alpha setting for empty-image drawing.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55470 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own recent commit - added function into wrong side of ifdef


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55471 954f8c5b-7b00-dc11-b283-0030488c597c
take 2 fixing build issue.


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