Blender Git Commit Log

Git Commits -> Revision c848ea9

Revision c848ea9 by Elia Sarti (master)
April 11, 2009, 15:46 (GMT)
2.5 / RNA
API, added support for return values for RNA_function_call_direct and completed the code. Didn't test it though.

Returns works exact the same way as other parameters for format strings except you put a R in front of it. For instance for a function that accepts two vectors and returns a vector you use a format like "f[4]f[4]Rf[4]".
I'm thinking about allowing arbitrary white space in the format string (or use comas as separators) to make it more readable.
The return format *must* always come last and of course the corresponding argument you pass to the function has to be a pointer so that it can be filled with the return value.

Commit Details:

Full Hash: c848ea953d6b10a74b334180220fb5ca3bd4f5bb
SVN Revision: 19662
Parent Commit: a406c15
Lines Changed: +212, -124

1 Modified Path:

/source/blender/makesrna/intern/rna_access.c (+212, -124) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021