Fix part of #34083: crash trying to play surround .wav file in the game engine
on Windows, it still doesn't play but it doesn't crash at least.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54376 954f8c5b-7b00-dc11-b283-0030488c597c
fix warning message when imported Collada nodes have < 3 edges.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54377 954f8c5b-7b00-dc11-b283-0030488c597c
fix null pointer issue when child nodes reference to unknown/invalid mesh

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54378 954f8c5b-7b00-dc11-b283-0030488c597c
fix for error in own recent commit, null check before assignment.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54379 954f8c5b-7b00-dc11-b283-0030488c597c
building ghost-sdl works again.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54380 954f8c5b-7b00-dc11-b283-0030488c597c
Fix part #33935: Texture painting slow down with mouse, but not with tablet

Issue is solved for painting on byte buffer with default sRGB display enabled.
In this case it is possible to skip any color space transform and just apply
dither if needed.

Still not sure if there's a regression in painting on flaots or not, will
continue investigation.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54381 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #34165: Disappearing active marker label in timeline window

Simply clamp label position from bottom.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54382 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#34163] "Zoom" in Python console startup message
from Shinsuke Irie (irie) 


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54383 954f8c5b-7b00-dc11-b283-0030488c597c
use sys.platform for checking the OS.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54384 954f8c5b-7b00-dc11-b283-0030488c597c
Release todo: added userpref for Mac users having "Natural Scroll" set.

As per discussion and analysis of all trackpad usage, we now
follow this convention:

- Blender follows system setting for trackpad direction preference.

- If you set your system to "natural" scroll, we need to invert a couple
  of cases in Blender we do "natural" already. Like:

   - view rotate (the inversed option just never feels ok)
   - scroll active items in list or pulldown menu (up/down is absolute)
   - ALT+scroll values in buttons (up/down is absolute)

The new User Preference setting "Trackpad Natural" handles this.

For 2.66 we only have trackpad handling for OS X... so this isn't
affecting trackpad usage in Windows and Linux, which stick to be mapped
to Scroll Wheel still.

(Note: viewrotate now is "natural" always, changing how it worked in the
past weeks).




git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54385 954f8c5b-7b00-dc11-b283-0030488c597c
fixed collada import for objects which have NO children

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54386 954f8c5b-7b00-dc11-b283-0030488c597c
fix: #34051 Collada export crashes

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54387 954f8c5b-7b00-dc11-b283-0030488c597c
Added warning below MultiSample User Preference option for Linux systems. 

(All 8 reports in tracker for selection failures were linux...)



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54388 954f8c5b-7b00-dc11-b283-0030488c597c
Fix Knife cut-through bug #34072.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54389 954f8c5b-7b00-dc11-b283-0030488c597c
RNA ui API: fix long-standing annoying glitches when using 'text' property of UI functions:
    * No context-aware at all.
    * Always translated (when i18n was enabled).

Now, it will try tu use RNA struct/property context if available, unless you specify a context within optional "text_ctxt" parameter.

And you can prevent translation by setting 'translate' parameter to False (is True by default).

Will clean up code in a later commit (remove PROP_STRING_PY_TRANSLATE flag and related code), and also fix uilist templates to translate no more materials/textures/etc. names!

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54390 954f8c5b-7b00-dc11-b283-0030488c597c
Cleanup: happily remove no-more-used PY_TRANSLATE RNA prop flag, and related code (just realized that flag value was wrong, probably own typo in a previous commit :/ ).

That "trick" was nice when introduced, but it became kind of a pita since we added translation contexts...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54391 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33747: do better backwards compatibility for image transparency changes.
The use alpha option moved from the texture datablock to the image, and now it
will duplicate the image datablock in case you have one texture using alpha and
the other not.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54392 954f8c5b-7b00-dc11-b283-0030488c597c
Fix uilists showing data names translated (reported on bf-translations ML by Satoshi Yamasaki aka yamyam, thanks!).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54393 954f8c5b-7b00-dc11-b283-0030488c597c
Fix build (some code before var declaration... thought my compiler checked that???).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@54394 954f8c5b-7b00-dc11-b283-0030488c597c
Corrections to alpha pipeline do_versions

Basically they're aimed to solve issues when scene with sky
was used for compositing. If compo used alpha output result
of current trunk would be completely different form hwo it
was before.

Two heuristics here:
- If there's no world or world color is black, it completely
  equals to straight alpha mode, no further magic is needed
  to preserve compatibility

- If scene is used as Render Layer node and something is
  connected to Alpha output of this node, ensure alpha mode
  for this scene is set to Premultiplied.

Basically it shall give better compatibility and make
4K mango project just happy! :)

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