code cleanup: video playback move frame step into the PlayState struct.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51284 954f8c5b-7b00-dc11-b283-0030488c597c
quiet some -Wshadow warnings


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51285 954f8c5b-7b00-dc11-b283-0030488c597c
Templates:
* UI Panel: Add examples for different button sizes. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51286 954f8c5b-7b00-dc11-b283-0030488c597c
* Fix small bug in Python operator example; improved example of modal operator



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51287 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#32865] Usercounts for World Textures not decremented after preview
render

When adjusting settings for world textures (with Both/World preview modes),
every tweak would result in the usercount of the texture increasing. As a
result, before long the texture would claim to have over 100 users. Fortunately,
this only appeared to be just a cosmetic issue (i.e. no real memory leak here),
though it was a bit unsettling.

NOTE: this is still a bit glitchy, as now we have flickering when updating
texture settings - the texture still temporarily has a second user during
preview rendering.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51288 954f8c5b-7b00-dc11-b283-0030488c597c
add support for ripping off a single face from a single vertex when the vertex has 3 surrounding verts & faces.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51290 954f8c5b-7b00-dc11-b283-0030488c597c
improve edge rip when the edge has only 2 other connected edges.

common case ripping an edge of the default cube, it didn't run the edge size check.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51291 954f8c5b-7b00-dc11-b283-0030488c597c
differenciate log message for enabled/disabled modules

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51292 954f8c5b-7b00-dc11-b283-0030488c597c
added filter for user installed addons

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51293 954f8c5b-7b00-dc11-b283-0030488c597c
fix for own error, leaving in test code to set the smooth flag.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51294 954f8c5b-7b00-dc11-b283-0030488c597c
Lattice Editing: Distortion-Free "Flip" Operator

This operator (Ctrl-F) allows you to flip the lattice coordinates without
inverting the normals of meshes deformed by the lattice (or the lattice's
deformation space for that matter). Unlike the traditional mirror tool, this
tool is aware of the fact that the vertex order for lattice control points
matters, and that simply mirroring the coordinates will only cause the lattice
to have an inverted deform along a particular axis (i.e. it will be scaling by a
negative scaling factor along that axis).

The problems (as I discovered the other day) with having such an inverted
deformation space are that:
- the normals of meshes/objects inside that will be incorrect/flipped (and will
disappear in GLSL shading mode for instance)
- transforming objects deformed by the lattices will become really tricky and
counter-intuitive (e.g. rotate in opposite direction by asymmetric amounts to
get desired result)
- it is not always immediately obvious that problems have occurred

Specific use cases this operator is meant to solve:
1) You've created a lattice-based deformer for one cartoonish eye. Now you want
to make the second eye, but want to save some time crafting that basic shape
again but mirrored.
2) You've got an even more finely crafted setup for stretchy-rigs, and now need
to apply it to other parts of the rig.

Notes:
* I've implemented a separate operator for this vs extending/patching mirror
transform tool as it's easier to implement this way, but also because there are
still some cases where the old mirroring seems valid (i.e. you explicitly want
these sort of distortion effects).
* Currently this doesn't take selections into account, as it doesn't seem useful
to do so.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51295 954f8c5b-7b00-dc11-b283-0030488c597c
More spell check exceptions...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51296 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: minor edits on recent commit.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51297 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for wrong cycles tangent in some cases, was missing transform.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51298 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles: progressive refine option

Just makes progressive refine :)

This means the whole image would be refined gradually using as much
threads as it's set in performance settings. Having enough tiles is
required to have this option working as it's expected.

Technically it's implemented by repeatedly computing next sample for
all the tiles before switching to next sample.

This works around 7-12% slower than regular tile-based rendering, so
use this option only if you really need it.

This commit also fixes progressive update of image when Save Buffers
option is enabled.

And one more thing this commit fixes is handling display buffer with
Save Buffers option enabled. If this option is enabled image buffer
wouldn't have neither byte nor float buffer until image is fully
rendered which could backfire in missing image while rendering in
cases color management cache became full.

This issue solved by allocating byte buffer for image buffer from
tile update callback.

Patch was reviewed by Brecht. He also made some minor edits to
original version to patch. Thanks, man!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51299 954f8c5b-7b00-dc11-b283-0030488c597c
And more UI messages spell check.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51300 954f8c5b-7b00-dc11-b283-0030488c597c
Add translation of reports messages (only direct uses of BKE_report(f)/BKE_reports_append(f) funcs for now). Already adds quite a bunch of new msgids!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51301 954f8c5b-7b00-dc11-b283-0030488c597c
More UI messages fixes.
Also forgot to translate reports' titles, and change some usages of BKE_reportf to simple BKE_report, when the former is not needed!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51302 954f8c5b-7b00-dc11-b283-0030488c597c
Make zoom direction consistent all over the editors

Was discussed in De Balie with lots of artists and we agreed it makes more
sense to behave this way

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