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:
authorCampbell Barton <ideasman42@gmail.com>2010-09-24 14:39:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-24 14:39:26 +0400
commit0ed109c5506ca3b7ebafe328095b1fafe7279c41 (patch)
tree6364a123343e0ed240bd95fd8d1bd204fbdf3e19 /source/blender/makesrna/intern/rna_access.c
parent4a8c1e3a2266219f12c260ab92174919c0488491 (diff)
missing check in recent commit
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r--source/blender/makesrna/intern/rna_access.c4
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;