diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-07-28 05:06:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-07-28 05:06:56 +0400 |
commit | fe881aa7ad0ba77052d0c637a5a4056f8ef427f8 (patch) | |
tree | 41bac228ce3afc29ac1aa6f601fc289cd80e155a /source/blender/python | |
parent | 396ebf0c91b1527e6ea1ab923a314a164007b8e9 (diff) |
- lamp UI was missing y samples for rectangle area lamps
- returned ID types from RNA funcs didnt get their ID's assigned which crashed in some cases (still not working for members of ID types).
- ob.create_remder_mesh() wasnt assigning any materials.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index c76cb252f2c..91e443dbc93 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -1867,8 +1867,12 @@ PyObject *pyrna_param_to_py(PointerRNA *ptr, PropertyRNA *prop, void *data) newptr= *(PointerRNA*)data; } else { - /* XXX this is missing the ID part! */ - RNA_pointer_create(NULL, type, *(void**)data, &newptr); + if(RNA_struct_is_ID(type)) { + RNA_id_pointer_create(*(void**)data, &newptr); + } else { + /* XXX this is missing the ID part! */ + RNA_pointer_create(NULL, type, *(void**)data, &newptr); + } } if (newptr.data) { |