SVN maintenance.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53975 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33836] issuing bpy.ops.render.render() in console crashes the program

don't check the event queue from threads, assert if this happens in future.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53976 954f8c5b-7b00-dc11-b283-0030488c597c
add rna paths to toolsettings and its substructs, useful for python scripting.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53977 954f8c5b-7b00-dc11-b283-0030488c597c
property change reporting now uses the context again, rather then checking a dir() on context, hard-code common paths.
eg:
  bpy.context.scene.render.resolution_x = 1921
  bpy.context.object.data.use_auto_smooth = True
  bpy.context.object.active_material.diffuse_intensity = 1
  bpy.context.scene.world.exposure = 0.1

also remove duplicate GS() defines


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53978 954f8c5b-7b00-dc11-b283-0030488c597c
fix for error where linking objects to the scene would show the popup if activated from the object menu.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53979 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33841] Disabling and re-enabling live addon crashes blender (modal/draw handler)


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53980 954f8c5b-7b00-dc11-b283-0030488c597c
correct addon tutorial section on keymap register/unregister and add label next to image color-depth option.
having buttons labelled [8, 16] on their own is not very meaningful.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53982 954f8c5b-7b00-dc11-b283-0030488c597c
reverting r53798 to fix [#33831], it casued bug [#33921]


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53983 954f8c5b-7b00-dc11-b283-0030488c597c
Fix projection texture painting crash

It was caused by own mistake by not noticing externtex is used not
only by render engine. Now this function uses pool passed as argument
rather than using R.pool.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53984 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #33951: Only margin is correctly baked for non-displacement baking

Was own mistake in recent changes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53985 954f8c5b-7b00-dc11-b283-0030488c597c
fix [#33889] Unexpected weights after parenting with Empty Groups

out of range dvert's are now cleared before adding new-empty groups.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53986 954f8c5b-7b00-dc11-b283-0030488c597c
Matcap support in 3D Viewport.

Full log is here:
http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.66/Usability#Matcap_in_3D_viewport

Implementation notes:

- Matcaps are an extension of Solid draw mode, and don't show in other drawmodes.
  (It's mostly intended to aid modeling/sculpt)

- By design, Matcaps are a UI feature, and only stored locally for the UI itself, and
  won't affect rendering or materials.

- Currently a set of 16 (GPL licensed) Matcaps have been compiled into Blender. 
  It doesn't take memory or cpu time, until you use it.

- Brush Icons and Matcaps use same code now, and only get generated/allocated on
  actually using it (instead of on startup).

- The current set might get new or different images still, based on user feedback.

- Matcap images are 512x512 pixels, so each image takes 1 Mb memory. Unused matcaps get 
  freed immediately. The Matcap icon previews (128x128 pixels) stay in memory.

- Loading own matcap image files will be added later. That needs design and code work 
  to get it stable and memory-friendly.

- The GLSL code uses the ID PreviewImage for matcaps. I tested it using the existing
  Material previews, which has its limits... especially for textured previews the
  normal-mapped matcap won't look good.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53987 954f8c5b-7b00-dc11-b283-0030488c597c
comments for RNA_def_property_ui_range() and clamp some out-of-range values.


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


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53989 954f8c5b-7b00-dc11-b283-0030488c597c
Confirming GPL license and thanks to the people who provided the matcaps:

Knt Trammell and Aidy Burrows and John Herreno.



git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53990 954f8c5b-7b00-dc11-b283-0030488c597c
scons compile fix for Ton's matcaps work

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53991 954f8c5b-7b00-dc11-b283-0030488c597c
Good rule of thumb. If blenderplayer gets broken after stubs.c leaves my "recently opened" menu on my editor, something is really wrong :)

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

Setting Cycles as render engine skipped matcap drawing.
Logic for checking drawing types needed a shuffle.



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


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