blender/source
Elia Sarti 9733e902a5 RNA functions
Fixed and completed support for returning multiple values. This includes support for returning arrays, both fixed and dynamically sized. The way this is achieved is by storing an additional int value next to the dynamic parameter in the ParameterList stack which gets passed to the C function as an additional parameter. In the case of return parameters it is duty of the C function to set this int to the correct length value for the dynamic parameter (which makes sense). Note that for the dynamic output/return parameter it is assumed the function has allocated that memory (which gets freed automatically).

Also, I cleaned the makesrna's bridge function generation code a bit and renamed PROP_RETURN to PROP_OUTPUT, which represents better the reality now that there are multiple returns. The function now to mark multiple returns (outputs) is RNA_def_function_output.

For an example, look at Action.get_frame_range in rna_action_api.c, by the way Aligorith I removed the #ifdef for this function now that there's support for returning arrays, feel free to modify (the function seems to work).
2010-01-24 10:51:59 +00:00
..
blender RNA functions 2010-01-24 10:51:59 +00:00
blenderplayer Add more stub functions for blenderplayer. 2010-01-17 19:20:05 +00:00
creator Fix link libraries for Win32 Cmake debug build. Unfortunately, debug builds are still crashing at startup - need to investigate further. 2010-01-17 19:19:15 +00:00
darwin OS X Makefiles: 2010-01-03 20:35:13 +00:00
gameengine BGE: Mouse Sensor type defaults to 1 (MOUSELEFT ) + remove camera attribute from Camera objects. 2010-01-17 21:46:34 +00:00
icons Merge from trunk -r 22040:23000. 2009-10-19 16:20:12 +00:00
kernel Merge from trunk -r 22040:23000. 2009-10-19 16:20:12 +00:00
CMakeLists.txt Undo revision 23130 which was a merge with 2.5, a messy one because I did something wrong (svn status output: http://www.pasteall.org/7887). 2009-09-15 18:01:18 +00:00
Makefile Change order of linking slightly so things link. 2010-01-22 16:28:16 +00:00
nan_compile.mk OS X Makefiles: 2010-01-03 20:35:13 +00:00
nan_definitions.mk Makefiles: renamed NAN_PCRE to BF_PCRE to keep consistent with other pcre related variables 2010-01-19 18:50:18 +00:00
nan_link.mk add OpenCOLLADA support to Makefiles 2010-01-10 09:11:48 +00:00
nan_subdirs.mk Makefile updates for Blender 2.5 (from GSR) 2009-03-19 01:50:45 +00:00
nan_warn.mk Update condition checks to match user definable CC and CCC. 2009-09-20 20:21:01 +00:00
SConscript Merge from trunk -r 22040:23000. 2009-10-19 16:20:12 +00:00