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>2011-02-01 02:54:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-01 02:54:51 +0300
commite8f7f42c1d8421d8112d9f9c67b8cb4ed231877e (patch)
tree1a33d83956c81ab7521de0b2e94f1368027ba656 /source/blender/makesrna
parent329e2d8037050e06d16984924a412e8b32ad4351 (diff)
bugfix [#25846] Strange behaviour if index of render.layers[] is out of range
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/makesrna.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index 6283ba226e5..4588d0c36c5 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -1013,7 +1013,7 @@ static char *rna_def_property_lookup_int_func(FILE *f, StructRNA *srna, Property
fprintf(f, " else {\n");
fprintf(f, " while(index-- > 0 && internal->link)\n");
fprintf(f, " internal->link= internal->link->next;\n");
- fprintf(f, " found= 1;\n");
+ fprintf(f, " found= (index == -1 && internal->link);\n");
fprintf(f, " }\n");
}