use bool for rna funcs.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55086 954f8c5b-7b00-dc11-b283-0030488c597c
avoid calling glGetFloatv() twice when UI_RB_ALPHA is enabled with uiRoundBox()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55087 954f8c5b-7b00-dc11-b283-0030488c597c
Collada fixed Collada ID name for exported animation curves

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55088 954f8c5b-7b00-dc11-b283-0030488c597c
ruler/protractor for 3d viewport (apart of 3d printing features). work-in-progress.

- activate from spacebar search (3D Ruler) 
- ctrl-click adds new rulers
- clicking in the middle of a ruler, turns into protractor, dragging out of view snaps back to ruler.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55089 954f8c5b-7b00-dc11-b283-0030488c597c
Texture paint refactoring commit

This is as close as I can get to keeping the old code intact. After this
commit, I will have to change existing code paths, making testing of
functionality harder.

Changes:

* Keep only projective texturing code in paint_image_proj.c
* Move 2D code to paint_image_2d.c. This needed the introduction of
allocation/cleanup functions for the relevant structures.
* Common code interface for both modes stays in paint_image.c (which
still includes all old code, system should work as it did with the
exception of non-projective 3D paint mode) and is made public. This is
not a lot of code, only rectangle invalidation and undo system.
* Changed the naming in the new code slightly: imapaint_ prefixed functions refer to
common functions used by both systems, paint_2d_ prefixed to 2d
painting. There will be an interface for the projection painting as
well. Probably there is some leftover naming conversions to do.

TODO:

* Move operator init/exec/modal to common interface file
* Get rid of old BKE_brush_painter_paint, now brush_painter_2d_paint.
All code uses stroke system for the stroke management
* Write space pressure management for the paint stroke system (for other
systems to access as well :) )
* Move texture paint tablet presssure exception code for old bugs to
stroke system (makes me wonder...aren't other systems also influenced by
these pressure issues?) or up in the function hierarchy inside texture
paint. This code is still not there so users with tablets may notice
some issues.
* possibly change other systems to pre-multiply pressure with the
relevant influenced attributes in the stroke function. This could get
tricky though and it's possible that it could backfire.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55090 954f8c5b-7b00-dc11-b283-0030488c597c
ruler arc draw clamps to line length and simplify projection.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55091 954f8c5b-7b00-dc11-b283-0030488c597c
Speedup for Grease Pencil animators.

Saving and loading gpencil was using different order for the individual list items.
On a 120 Mb gpencil project (yes, animators!) loading time went down from 1 minute 
to a second or two.

Note that this to have effect, you need to save once.

Developer note: check this commit, it uses a new writelist function. You can 
speedup stuff tremendously with keeping saved and read data in sync.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55092 954f8c5b-7b00-dc11-b283-0030488c597c
Border for compositor viewer node feature

This adds border option to compositor, which affects on
a backdrop and viewer nodes, which is useful for faster
previews and tweaks.

Final compositing still happens for the whole frame, but
if it'll be needed it's not so difficult to support it
as well.

To use border there's Ctrl-B shortcut in the compositor
editor, which i used to define region you want to restrict
compositing to. There's also "Viewer Border" option in
the N-panel in case you'll want to disable border
compositing.

Some areas could be cleaned a bit, like ideally it shall
not be viewer image clearing in viewer_border_update RNA
callback, but currently it's not so much clear how to
make it the same fast as simple memset and glue it
somehow to compositor. Will think of nicer solution a
bit later.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55093 954f8c5b-7b00-dc11-b283-0030488c597c
Fix building with blenderplayer

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55094 954f8c5b-7b00-dc11-b283-0030488c597c
Fix warnings in stubs.c

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55095 954f8c5b-7b00-dc11-b283-0030488c597c
bullet: Update to current svn, r2636

Apply patches in patches directory, remove patches that were applied
upstream.
If you made changes without adding a patch, please check.

Fixes [#32233] exporting bullet format results in corrupt files.

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

Allow layers to be moved up and down, so you can control drawing order nicer.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55097 954f8c5b-7b00-dc11-b283-0030488c597c
math: Use len_v3() instead of normalize_v3() for area calculation

We only need the length, avoids unnecessary calculations.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55098 954f8c5b-7b00-dc11-b283-0030488c597c
OSX/gcc-4.6: workaround a compilerbug, use apple-gcc instead

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