Fix: weight painting operated only for selected vertices in edit mode.
We only need this in case vertex selection is enabled.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53477 954f8c5b-7b00-dc11-b283-0030488c597c
UI cleanup: fixed texture is a 2d image painting option, hide in 3D viewport toolbar

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53478 954f8c5b-7b00-dc11-b283-0030488c597c
remove vertex selection check for weight paint mode so you can paint `through` the mesh.

also made the wire draw without depth masking when the depth check is off, similar to mesh editmode drawing, nice hint about whats going on.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53479 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#33331] Time To Start Moving To Stdbool
by Lawrence D'Oliveiro (ldo)

so BKE_utildefines.h allows use of C99's bool type and true/false.

currently scons wont try to use stdbool.h, and works as if its never found.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53480 954f8c5b-7b00-dc11-b283-0030488c597c
make wight-paint-through feature work in face select mode. (still WIP, relies on selection flushing which currently ensured).


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53481 954f8c5b-7b00-dc11-b283-0030488c597c
fix for long standing annoyance with weight-paint mode selection.

There was no selection flushing when faces or verts were selected, this allowed incorrect selection states like selected face with unselected vertices.

add flush commands to paintface_flush_flags() and paintvert_flush_flags()


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53482 954f8c5b-7b00-dc11-b283-0030488c597c
Added MOUSEPAN (the trackpad event) to control propertional size while transform.

There's many hardcoded scrollwheel events in Blender for this, and with new proper
analog trackpad handling I'll try to find good remapping for most cases.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53483 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own error in recent weight paint code, bound-box clip wasnt working.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53484 954f8c5b-7b00-dc11-b283-0030488c597c
Add a warning to enum props' items parameter, to *never* use a generator as value for this param! It works in most cases, but in some it leads to an empty set of values for the enum (see [#33716]), and it's not an easy bug to track down!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53485 954f8c5b-7b00-dc11-b283-0030488c597c
Highlight currently rendering tiles

This commit implements highlight of tiles which are being currently
rendered for both Blender Internal and Cycles (and should be possible
to use it for other external engines as well).

Couple of implementation details:

- Added one extra boolean flag to render engine which should be set
  to truth if render engine wants to highlight tiles. If so, property
  use_highlight_tiles should be set to True.

- Render Part's ready boolena was changed by status enum, which could
  be NONE, IN_PROGRESS and READY. All render part with IN_PROGRESS
  status will be highlighted in image editor.

- For external engines render part's status is filling in automatically.
  Initially all render parts has got NONE status, then one external
  engine acquire render result, corresponding part will change status
  to IN_PROGRESS. As soon as render result is finished, corresponding
  render part will change status to FINISHED

  This should make it easy to highlight tiles for other engines as well.

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

When trackpad swipes don't convert to ScrollWheel steps anymore, several hardcoded
wheel events need to support swipe too.

This adds swipe support to:
- Menu item scroll
- Search item scroll
- ALT + number/slider/swatch values

The amount of old style scroll "clicks" is calculated based on how trackad is
being mapped to move a mouse pointer. Move it one widget unit = 1 click.

The swatch option applies trackpad swipe motion in analog way.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53487 954f8c5b-7b00-dc11-b283-0030488c597c
Intent to fix windows not compiling after r53480.

Looks like _Bool is also a type in std (at least with msvc), so the 'typdef bool _Bool;' generates a name collision... Now using _BLI_Bool as placeholder instead.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53488 954f8c5b-7b00-dc11-b283-0030488c597c
Bug fixes, own collection.

While examining icons, I noticed material icons were too dark.
It appeared a lot of bad hacks were added for colormanagement in preview render.

Removed them all, and things look smooth (yes, color management is OK!).

However! It is now very clear that Procedural Textures miss getting inverse
color managed in render - a reason why they show so bright washed out, already
since introduction of Color Management in Blender.

Try render a plane with linear black-white blend, shadeless!
http://www.blender.org/bf/Untitled.png

Todo: add colormanaged procedurals (optional).



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53489 954f8c5b-7b00-dc11-b283-0030488c597c
Fix to prevent undefined normals being generated with `add_face_normals()', from triangles with zero area.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53490 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for normal scaling when using triangle primitives for hair.

and some code clean ups in blender_curves and node_shader_hair_info.c

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53491 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup:
Separate 2D painting functions away from brush.c, which should implement
the brush API and into its own file, paint_2D.c.
Ideally projective texturing and 2D painting should be totally separate,
however functionality is still interleaved mostly in the
BKE_brush_painter_paint function. The functionality of this function can
possibly be done using the brush stroke functions instead.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53492 954f8c5b-7b00-dc11-b283-0030488c597c
rename paint_2D to paint_image_2D. Catering for possible name conflicts
with other 2D paint systems.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53493 954f8c5b-7b00-dc11-b283-0030488c597c
Patch [#29035] Vertex colour baking

There is a new option in the Bake panel to enable baking to vertex colors. Unlike regular baking, this mode does not require a UV map or image to bake to, however the object must have a vertex color layer.

Thanks to:
 - AutoCRC for funding
 - Brech van Lommel and Dalai Felinto for their initial advice on how to implement it
 - Campbell Barton for helping to make this feature work with modifiers and bmesh


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53494 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for what appears to be a typo (seq_prev is always NULL) - found while
reviewing the latest Clang reports


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


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