Age | Commit message (Collapse) | Author |
|
|
|
|
|
- pep8 script was giving an error on non utf8 scons source files.
- use PyList_SET_ITEM macro when list type is ensured.
- all mathutils types use subtypes to create new types when available.
- use defines MAT3_UNITY, MAT4_UNITY to initialize unit matrices.
|
|
|
|
|
|
added to review function calls too.
output:
# * functions *
KeyConfig.keymaps.find(string name, enum space_type='EMPTY', enum region_type='WINDOW') --> KeyMap
KeyConfig.keymaps.find_modal(string name) --> KeyMap
KeyConfig.keymaps.new(string name, enum space_type='EMPTY', enum region_type='WINDOW', boolean modal=False) --> KeyMap
KeyConfigurations.new(string name) --> KeyConfig
KeyConfigurations.remove(KeyConfig keyconfig)
# * properties *
WorldMistSettings.intensity <-- float
WorldMistSettings.start <-- float
WorldMistSettings.use_mist <-- boolean
WorldStarsSettings.average_separation <-- float
WorldStarsSettings.color_random <-- float
WorldStarsSettings.distance_min <-- float
WorldStarsSettings.size <-- float
WorldStarsSettings.use_stars <-- boolean
|
|
|
|
|
|
* option to roll the delta of the arm rig.
* fix to copy metarig type
* renamed EditBone.align() --> EditBone.align_roll()
* Added EditBone.align_orientation(other)
* Added bone.vector: same as (bone.tail - bone.head)
|
|
predefined layer types 'main', 'extra', 'ik', 'fk'
|
|
|
|
made some changes but mostly these scripts will give pep8 warnings.
|
|
On ubuntu/debian install these tools...
sudo apt-get install pylint pyflakes python-setuptools python-pip
sudo pip install pep8
then run from blenders source dir...
python release/test/pep8.py
This searches for the comments "# <pep8 compliant>" and "# <pep8-80 compliant>", running the checking tools on these scripts only.
* some minor pep8 corrections too.
|
|
|
|
Multidim. arrays can now be modified at any level, for example:
struc.arrayprop = x
struc.arrayprop[i] = x
struc.arrayprop[i][j] = x
struc.arrayprop[i][j][k] = x
etc...
Approriate rvalue type/length checking is done.
To ensure all works correctly, I wrote automated tests in release/test/rna_array.py.
These tests cover: array/item access, assignment on different levels, tests that proper exceptions are thrown on invalid item access/assignment.
The tests use properties of the RNA Test struct defined in rna_test.c. This struct is only compiled when building with BF_UNIT_TEST=1 scons arg.
Currently unit tests are run manually by loading the script in the Text Editor.
Here's the output I have: http://www.pasteall.org/7644
Things to improve here:
- better exception messages when multidim. array assignment fails. Those we have currently are not very useful for multidim.
- add tests for slice assignment
|