Blender Git Loki
Git Commits -> Revision 594c880
Revision 594c880 by Elia Sarti (master) July 1, 2009, 19:56 (GMT) |
Added support for collection parameters also for RNA_function_call_direct family of functions. The syntax for passing collection parameters is similar to passing pointers where you pass first the RNA type and then the ListBase representing the collection. The format specifier is "C" instead of "O", e.g. RNA_function_call_direct_lookup(C, reports, ptr, "do_something", "sC", "some string value", &RNA_SomeItemType, listbase); Note that from python you could in theory pass collections of items each of a different type while using this API you can't. I don't think this should be a problem as RNA supports collections this way anyway (i.e. where items are all of the same type or inherit from the same base type). Also a small fix for pointer parameters. |
Commit Details:
Full Hash: 594c8802d748dc0701af491e8a2c590f2d2e0038
SVN Revision: 21292
Parent Commit: 1a86cd6
Lines Changed: +49, -11
1 Modified Path:
/source/blender/makesrna/intern/rna_access.c (+49, -11) (Diff)