From 0ed109c5506ca3b7ebafe328095b1fafe7279c41 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 24 Sep 2010 10:39:26 +0000 Subject: missing check in recent commit --- source/blender/makesrna/intern/rna_access.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/makesrna/intern/rna_access.c') 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; -- cgit v1.2.3