blender/release/scripts
Lukas Toenne dd36c6b948 Fix for an obscure bpy_types bug: When attempting to define __setattr__ in a metaclass based on RNAMetaPropGroup, the base class' __setattr__ method can not be called, since python prohibits setattr on
builtin classes. This was done in Python 2.3 to prevent changes to the 'object' type definition and similar issues. As explained by Guido van Rossum in the following mail, the python check will look for
the *closest* base class, which fails for RNAMetaPropGroup because its first base is RNAMeta, which is in turn a subclass of 'type'.

http://code.activestate.com/lists/python-dev/34489/

The easiest and safest way to prevent this issue therefore seems to be
to swap the base class order for RNAMetaPropGroup, so that StructMetaPropGroup is the first base, which has a perfectly valid setattr implementation.
2013-08-23 15:39:25 +00:00
..
freestyle style cleanup: pep8, also use float literals when comparing floats and pass tuples to mathutils.Vector() rather then list. 2013-08-21 23:19:01 +00:00
modules Fix for an obscure bpy_types bug: When attempting to define __setattr__ in a metaclass based on RNAMetaPropGroup, the base class' __setattr__ method can not be called, since python prohibits setattr on 2013-08-23 15:39:25 +00:00
presets Cycles / Sampling UI: 2013-08-22 19:57:56 +00:00
startup new mesh bisect tool, available in the mesh menu. 2013-08-23 11:46:08 +00:00
templates_osl Cycles / Toon BSDF: 2013-05-23 17:45:20 +00:00
templates_py use 'with' keyword for script stub (recommended with py3). 2013-08-17 05:27:58 +00:00