Fix #34501: Painting on image editor with texture brush causes memory leaks in render module

Issue was caused by svn rev54721 where donequeue wasn't fully handled
in cases rendering was canceled, which lead to some render results
unfreed.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55017 954f8c5b-7b00-dc11-b283-0030488c597c
Collada: Added ngon support to Vertex Color exporter

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55020 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34475: Weird noise bug with Texture nodes

Made Texture compositor input node single-threaded since
texture trees are not thread-safe.

Also fixed texture being flipped horizontally and vertically.
Why nobody noticed this for 3 releases already??

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55021 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for image transparency backwards compatibility. Now the texture datablock has
a Use Alpha option again. This makes the case where you enabled Premultiply on the
image and disabled Use Alpha on the texture work again.

That's mostly useful when you have a straight alpha image file which has no useful
RGB colors in zero alpha regions (e.g. renders). Then sometimes you don't want to
use the alpha for the texture stack mixing, but you still want to multiply it into
the RGB channels to avoid a blocky transition into zero alpha regions.

This also removes the version patch that copied image datablocks because it's not
reliable and might be causing bug #34434. This does mean we are no longer backwards
compatible for cases where two different texture datablocks with Use Alpha enabled
and disabled where using the same image.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55022 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#34525] Scons ' color
by Andrey Izrantsev (bdancer)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55023 954f8c5b-7b00-dc11-b283-0030488c597c
Change default margin for bake to 16 pixels

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55024 954f8c5b-7b00-dc11-b283-0030488c597c
Avoid clearing the depth buffer when using full screen quads for
gradients

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55025 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for texture preview render with show alpha enabled, now it shows no
transparency when use alpha and calculate alpha are disabled.

It's a bit arbitrary as it's not possible to fully visualize the output
of a texture, that depends on how it's used in the texture stack, but this
is a bit more in line with what you might expect.

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

For 2.66a

Allow trackpad and magic mouse swipes to control brush size for circle select.
(Similar to mousewheel).



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55027 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for incorrect subpixel precision of marker when using track offset

Issue was caused by the way how pattern sampling happens in case of
anchored display: track offset is applying on search buffer which
means offset is rounding to an integer. Fractional pat of offset was
completely ignoring which lead to jumps in pattern buffer.

This was only a visualization issue in track preview widget.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55028 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#34103] use booleans for extensions testing.
bli_testextensie.patch - from Lawrence D'Oliveiro (ldo)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55029 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#34103] use boolean in path functions and add comments.
path_util_1.patch from Lawrence D'Oliveiro (ldo)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55030 954f8c5b-7b00-dc11-b283-0030488c597c
remove gmake test as it has been merged into trunk
remove code folding hack - new folders don't fall for this
and work better anyway
also includes whitespace changes automated by qtcreator
to match blender format rules
Convert paint stroke code to write region instead of screen coordinates
on mouse event coordinates. Every paint mode operated on and converted
back to region coordinates, texture paint does so too so this will help
in unifying the systems.

ALERT! POSSIBLE BREAKING COMMIT:

I have tested all paint systems that use the stroke code and they look
like they work well but I would appreciate it if more eyes could test
this.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55032 954f8c5b-7b00-dc11-b283-0030488c597c
remove insignificant variations between master and trunk
remove toggle all bone layers
lack of interest and new features offer simple alternative
Image buffer rectangle operation optimization: Remove a switch statement
outside of loop and remove a function call. Should give a little speedup when
painting inside the image editor.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55033 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#34103]
from Lawrence D'Oliveiro (ldo)

More use of bool type, necessitating adding inclusion of BLI_utildefines.h, or moving it up in the inclusion order if it was already included, in various places
- storage.c: make some variables only used in bli_builddir local to that
- storage.c: BLI_file_descriptor_size should allow 0 as a valid file descriptor
- path_util.c: make pointers to non-reentrant storage returned from folder routines const, necessitating making variables holding these returned pointers const elsewhere as well
- path_util.c: BLI_string_to_utf8 closes iconv context in case of conversion error
-  blf_lang.c: fill_locales routine now has its own "languages" local variable to construct paths (was stealing internal storage belonging to BLI_get_folder before)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@55035 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#34103] dir_contents.patch
from Lawrence D'Oliveiro (ldo)

- storage.c: Simplify BLI_dir_contents and make it and its internal subsidiary routines reentrant
- Moved common code for disposal of a struct direntry to new routine BLI_free_filelist in storage.c, and put calls to it in interface_icons.c and filelist.c
- Took out inclusion of BLI_fileops_types.h from BLI_fileops.h and put it explicitly into .c files that need it (which turned out to be only 7 of the 35 files that were including the former)


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