diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index ae44cb1db7c..275e0cc7360 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -3027,6 +3027,7 @@ int RNA_path_resolve_full(PointerRNA *ptr, const char *path, PointerRNA *r_ptr, if(nextptr.data) { curptr= nextptr; prop= NULL; /* now we have a PointerRNA, the prop is our parent so forget it */ + *index= -1; } else return 0; @@ -3069,6 +3070,7 @@ int RNA_path_resolve_full(PointerRNA *ptr, const char *path, PointerRNA *r_ptr, if(nextptr.data) { curptr= nextptr; prop= NULL; /* now we have a PointerRNA, the prop is our parent so forget it */ + *index= -1; } else return 0; |