Removed the 'custom node group' example from the pynodes template script. This does not work properly due to the fact that node groups don't have a single registerable base class any more. The reason for
that is that RNA does not support multiple inheritance so the actual node group subtypes (ShaderNodeGroup, CompositorNodeGroup, TextureNodeGroup) can not be derived from both the
ShaderNode/CompositorNode/TextureNode base types as well as a common NodeGroup type ... It is possible however to define node group types entirely in python which avoids the limitations of the RNA system
and is much more flexible, example for this will follow later.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57300 954f8c5b-7b00-dc11-b283-0030488c597c
Added an example for using the new node categories system to the custom_nodes.py template script.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57301 954f8c5b-7b00-dc11-b283-0030488c597c
Removed deprecated XXX comment from custom_nodes.py, importing node base types works now (this comment was causing some confusion in the past).

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57302 954f8c5b-7b00-dc11-b283-0030488c597c
Removed the unused draw_add_menu function from pynodes template. This was previously used to extend the node Add menu, now the node categories system is used instead.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57303 954f8c5b-7b00-dc11-b283-0030488c597c
Fix for unintended commit of python template file ...

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57304 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35677, #35525: cycles viewport not updating properly in some situations.

Revision 56883 broke a mechanism where cycles tags itself to be updated later
while it is busy.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57306 954f8c5b-7b00-dc11-b283-0030488c597c
Fix related to #35681: avoid some unnecessary cycles updated when using exclude
render layers.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57307 954f8c5b-7b00-dc11-b283-0030488c597c
Bugfix [#35686] Grease pencil to curve conversion causes NAN weights on vertices

When you convert a grease pencil stroke to a polygon curve and look at the
vertices, the first and last vertex have weight = 0, but all others have a -NaN
value. This was caused by division by zero issues when minmax_weights[0] ==
minmax_weights[1].


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57308 954f8c5b-7b00-dc11-b283-0030488c597c
jpbouza Feature Request: Transformation Constraint now allows applies rotation
offsets too (like for location)

This is useful in some cases when Copy Rotation constraints would otherwise be
used for this purpose but cannot be used for various reasons. Basically, this
works in practically the same way that the Copy Rotation offsets work, including
the same weirdness that you'll get when trying to manually rotate these in the
3D viewport using "global" space manipulations ("local/normal" spaces though
still seem to work really nicely).

WARNING: this may potentially break old files with transform constraint setups
involving rotation outputs. Please check whether this causes any problems on old
files, and report back if there are any issues.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57309 954f8c5b-7b00-dc11-b283-0030488c597c
Ack! Typo in previous commit.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57310 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35638: Object disappears when rotating after using the simplify brush

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57311 954f8c5b-7b00-dc11-b283-0030488c597c
NLA Editor: It is now possible to add strips to AnimData blocks with no existing
tracks

As a convenience feature for those who are loading in action libraries and using
these to quickly block out things in the NLA editor, it is now possible to add
strips to AnimData blocks without first manually creating empty tracks to add
these strips to. Simply ensure that such empty AnimData blocks are selected
(Hint: click on the action line of the affected AnimData block to do so), and
try to add a strip normally.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57312 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35611: 'Quick Edit' in Texture mode + RGBA16bit gives bright results

Was missing linearization of colro came from byte buffer.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57313 954f8c5b-7b00-dc11-b283-0030488c597c
Cycles:
* Use float_to_int() functions in a few more places. 

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57314 954f8c5b-7b00-dc11-b283-0030488c597c
This commit replaces old "manual" Editors menu with nice RNA-based one (so once again, some cleanup of old UI code). It makes the following changes:

* RNA's editor types enum (space_type_items) has been re-ordered, added icons, and removed internal-only SPACE_EMPTY value, so that it matches the menu.

* Two fixes in code drawing enums as dropdown menu:
** All items were taken into account when computing the number of needed columns, now simple separators (void string items) are ignored.
** Simple separators items were drawn as labels, taking far too much space!

And now translators will be free from that ugly, insane menu-string! :P

Thanks to Brecht for the review.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57316 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35665: cycles CUDA crash after recent changes. This works around a compiler
bug in CUDA 4.2 (solved in 5.5) with typedef'd function parameters.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57317 954f8c5b-7b00-dc11-b283-0030488c597c
Code cleanup: removed some unused UI button types

* CHARTAB: not needed anymore with improved copy/paste support and text input.
* IDPOIN: replaced by SEARCH_MENU.
* ICONROW/ICONTEXTROW: replaced by RNA enums.
* NUMABS: can use min/max limits instead.
* BUT_TOGDUAL, TOG3, TOGR, SLI: not used in 2.5 interface.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57318 954f8c5b-7b00-dc11-b283-0030488c597c
Fix #35696: cycles crash with no world assigned to scene, after recent changes.

git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57319 954f8c5b-7b00-dc11-b283-0030488c597c
patch [#35631] Active element for Lattice
by Kevin Mackay (yakca)

Was one of our TODO's from the wiki.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@57320 954f8c5b-7b00-dc11-b283-0030488c597c
code cleanup: use boolean for intersection functions.


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