diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-04 15:33:45 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-04 15:33:45 +0300 |
commit | 4dc59fff2835f509c563684f7d4e116b2dcfd873 (patch) | |
tree | 9a0380ce5c9d6c74563188162c8eebc3871b5528 | |
parent | 0271ad6322775de43f0c3f790f070b975861aa7d (diff) |
Bugfix #24699
Crash when deleting Shapekeys, while Graph or Dopesheet was visible.
Caused by RNA collection lookup, which is not checking against index
out of range errors.
Brecht might have to give blessings for this though :)
-rw-r--r-- | source/blender/makesrna/intern/makesrna.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c index 903c769877f..f454cb8f231 100644 --- a/source/blender/makesrna/intern/makesrna.c +++ b/source/blender/makesrna/intern/makesrna.c @@ -918,7 +918,7 @@ static char *rna_def_property_lookup_int_func(FILE *f, StructRNA *srna, Property fprintf(f, " }\n"); fprintf(f, " }\n"); fprintf(f, " else {\n"); - fprintf(f, " while(index-- > 0)\n"); + fprintf(f, " while(index-- > 0 && internal->link)\n"); fprintf(f, " internal->link= internal->link->next;\n"); fprintf(f, " }\n"); } |