BGE: The Blenderplayer wasn't calling PyEval_InitThreads, which caused async lib loading to crash.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53568 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33767: Edge of objects rendered out jerky when using OpenGL Rendering

Made OpenGL sky opaque, so now it behaves exactly the same as sky for final render.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53570 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33768: BGE segfaults in do_versions during libload

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53571 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33761: Infinite loop in space_image if tile size > image size

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53572 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33674: Meta strip could overlap with other strips when exiting edit mode

Not sure what's the best thing to do here, for now just added vertical shuffle
of meta strip if it overlaps with other strips when existing edit mode.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53574 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33753: Not selected surface objects don't update in view if shading is changed

In fact surfaces should be displaying the same way in textures and solid shading,
but they used to change a way they're displaying by draw_textured_end not resetting
light model properly, leaving two-sided shading for all further objects draw.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53575 954f8c5b-7b00-dc11-b283-0030488c597c
BGE: Fix for [#33769] "Material friction settings are ignored" reported by Alex Fraser (z0r).

As of r53332, give_current_material() won't accept a 0 index and return NULL. CreateMaterialFromBlenderObject() was using index 0 to just grab the first material. Since this now returned NULL, it would use default settings. We'll just ask for index 1 now instead.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53576 954f8c5b-7b00-dc11-b283-0030488c597c
revert r53570, alpha background is useful for projection paint 'Quick Edit',
it would also give odd results drawing semi transparent faces will give partial alpha which is strange to have with solid backdrop.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53579 954f8c5b-7b00-dc11-b283-0030488c597c
Adding some example for new UIList...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53580 954f8c5b-7b00-dc11-b283-0030488c597c
Tsst... "faled"... :p

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53581 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix: "Change Frame" operator for setting current frame by clicking/scrubbing
in a timeline view would show up search results in other editors (e.g. 3D View).

This only really works where there is a timeline view as:
1) The modal interactive stuff is built on the assumption that a suitable 2D
view mapping exists
2) The operator is not "registered" (i.e. no props display after usage, and
doesn't get shown in undo) as it's more "view state" than "scene data"

Rewrote poll callback to handlethis properly


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53582 954f8c5b-7b00-dc11-b283-0030488c597c
Add translation contexts for line, mute and clip

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53583 954f8c5b-7b00-dc11-b283-0030488c597c
Making a few tooltips more descriptive, in light of recent confusion over the
purpose of some of these features

* ClampTo Constraint, Target Object field: now mentions that it is for curve
objects only
* Dopesheet Editor Modes: now describe what data is editable in each mode. The
wording may be a bit clumsy here, but (apart from Mask Editor one, which I'm not
entirely sure about) should at least be technically correct



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53584 954f8c5b-7b00-dc11-b283-0030488c597c
Remove usage of deprecated TEX_USEALPHA from GE code

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53585 954f8c5b-7b00-dc11-b283-0030488c597c
Remove some uneeded/irrelevant "PROP_TRANSLATE".

This sub-type is actually *only* needed for the "text" property of UI rna api (maybe we should rename it to "PROP_PY_TRANSLATE", as it is anyway only 'active' during conversion from py string to RNA string property...). In fact, I think it should only be used in RNA func properties anyway, as it stores the translated string into the property, it should only be used with "one time" RNA stuff...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53586 954f8c5b-7b00-dc11-b283-0030488c597c
This patch adds support in bpy.props for getter/setter callback functions. We already have update callbacks, but generic get/set functions can come in handy in some cases where the functionality is too complex to use a single value.

The current C callback functions are too simple allow a straightforward implementation, in particular they don't receive the PropertyRNA pointer itself as an argument, which means the callback cannot directly access the PropertyRNA's py_data pointers which store the python function objects. For this reason a second runtime variant of these callbacks has been added. It is only used for runtime callbacks and not in makesrna, but otherwise works the same way.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53587 954f8c5b-7b00-dc11-b283-0030488c597c
Changes for opengl render to reflect new alpha premul pipeline
without hurting quick texture painting

- ED_view3d_draw_offscreen will now output buffer with
  transparent alpha, if sky needed it should be alpha-undered
  later.

- ED_view3d_draw_offscreen_imbuf now accepts alpha mode as an
  argument which could be either R_ADDSKY or R_PREMULALPHA

- OpenGL render and sequencer's opengl preview will now reflect
  scene's Alpha Mode

- Quick Edit will use OpenGL with transparent alpha mode

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53588 954f8c5b-7b00-dc11-b283-0030488c597c
style cleanup: also add checker for function brace placement.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53589 954f8c5b-7b00-dc11-b283-0030488c597c
Added some python API examples for the new get/set callbacks in bpy.props.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53590 954f8c5b-7b00-dc11-b283-0030488c597c
New version of code to detect whether a wheel is involved, or a trackpad.

It was compiled with "deploy target 10.6" tested on macbook with 10.8.
More tests follow quick.



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