[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24126] trunk/blender/source/blender/ makesrna/intern/rna_access.c: Bugfix: RNA_path_from_ID_to_struct crashed in automatic nested struct detection.
Brecht Van Lommel
brecht at blender.org
Tue Oct 27 22:58:03 CET 2009
Revision: 24126
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24126
Author: blendix
Date: 2009-10-27 22:58:03 +0100 (Tue, 27 Oct 2009)
Log Message:
-----------
Bugfix: RNA_path_from_ID_to_struct crashed in automatic nested struct detection.
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_access.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_access.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_access.c 2009-10-27 21:54:29 UTC (rev 24125)
+++ trunk/blender/source/blender/makesrna/intern/rna_access.c 2009-10-27 21:58:03 UTC (rev 24126)
@@ -2435,14 +2435,14 @@
/* if type has a path to some ID, use it */
ptrpath= ptr->type->path(ptr);
}
- else if(ptr->type->nested) {
+ else if(ptr->type->nested && RNA_struct_is_ID(ptr->type->nested)) {
PointerRNA parentptr;
PropertyRNA *userprop;
/* find the property in the struct we're nested in that references this struct, and
* use its identifier as the first part of the path used...
*/
- RNA_pointer_create(ptr->id.data, ptr->type->nested, ptr->data, &parentptr);
+ RNA_id_pointer_create(ptr->id.data, &parentptr);
userprop= RNA_struct_find_nested(&parentptr, ptr->type);
if(userprop)
More information about the Bf-blender-cvs
mailing list