blender/source
Arystanbek Dyussenov 62138aaa5a Python part of multidim. array support for RNA complete.
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
2009-09-06 15:13:57 +00:00
..
blender Python part of multidim. array support for RNA complete. 2009-09-06 15:13:57 +00:00
blenderplayer white space commit. (2 spaces -> tab). 2009-09-06 01:51:23 +00:00
creator white space commit. (2 spaces -> tab). 2009-09-06 01:51:23 +00:00
darwin NaN makefiles now support and build with precompiled Python 3.1 by default on Mac 2009-08-02 06:22:53 +00:00
gameengine * cleaning up warnings (mostly windows). A collection of other warning fixes too (undefined function, assuming int, etc.) 2009-09-06 13:20:05 +00:00
icons == SCons == 2009-09-04 12:56:30 +00:00
kernel white space commit. (2 spaces -> tab). 2009-09-06 01:51:23 +00:00
CMakeLists.txt white space commit. (2 spaces -> tab). 2009-09-06 01:51:23 +00:00
Makefile Add Makefile for sound ops. 2009-08-28 15:54:15 +00:00
nan_compile.mk forgot to updated scons and make for the bullet defines 2009-08-18 04:15:28 +00:00
nan_definitions.mk Update Makefile and missing include on voxeldata.c 2009-08-25 21:25:41 +00:00
nan_link.mk Remove astray tab chars. 2009-08-15 23:42:16 +00:00
nan_subdirs.mk Makefile updates for Blender 2.5 (from GSR) 2009-03-19 01:50:45 +00:00
nan_warn.mk Makefile updates for Blender 2.5 (from GSR) 2009-03-19 01:50:45 +00:00
SConscript == SCons == 2009-09-04 10:40:41 +00:00