Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-05-11 06:26:18 +0400
committerJoshua Leung <aligorith@gmail.com>2009-05-11 06:26:18 +0400
commit8e3356793a24994c1188aabfb57cb2feca20daf5 (patch)
treec2323fca0572b20bf1c20d09df0d3f22eaeb7557 /source/blender/makesrna/intern/rna_access.c
parent5c96cd0319c759555175e37be5c3dcd162fe01d8 (diff)
2.5
* Broke compiling on previous fix... * Starting fix for nestled structs...
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r--source/blender/makesrna/intern/rna_access.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 4d2302f1c06..fe6f4c13d9b 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -1718,10 +1718,18 @@ char *RNA_path_from_ID_to_property(PointerRNA *ptr, PropertyRNA *prop)
return NULL;
if(!RNA_struct_is_ID(ptr->type)) {
- if(ptr->type->path)
- ptrpath= ptr->type->path(ptr);
- else
- return NULL;
+ if(ptr->type && ptr->type->nested) {
+ //StructRNA *nestedType= ptr->type->nested;
+
+ printf("RNA - struct is nested \n");
+ // TODO: how do we get the identifier of the way this is nested into the main?
+ }
+ else {
+ if(ptr->type->path)
+ ptrpath= ptr->type->path(ptr);
+ else
+ return NULL;
+ }
}
propname= RNA_property_identifier(prop);