diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-24 14:39:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-24 14:39:26 +0400 |
commit | 0ed109c5506ca3b7ebafe328095b1fafe7279c41 (patch) | |
tree | 6364a123343e0ed240bd95fd8d1bd204fbdf3e19 /source/blender/makesrna | |
parent | 4a8c1e3a2266219f12c260ab92174919c0488491 (diff) |
missing check in recent commit
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 275e0cc7360..6cb5858648a 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -3027,7 +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; + if(index) *index= -1; } else return 0; @@ -3070,7 +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; + if(index) *index= -1; } else return 0; |