* Broke compiling on previous fix...
* Starting fix for nestled structs...
This commit is contained in:
Joshua Leung
2009-05-11 02:26:18 +00:00
parent 5c96cd0319
commit 8e3356793a
2 changed files with 13 additions and 4 deletions

View File

@@ -29,6 +29,7 @@
#include "BKE_action.h"
#include "BKE_constraint.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
#include "BKE_utildefines.h"
#include "BKE_context.h"
#include "BKE_report.h"

View File

@@ -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);