diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-01 12:48:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-01 12:48:00 +0400 |
commit | 1072ba66e0bb9c09d0cdb9502bfc8ea89ee30172 (patch) | |
tree | 74f7b9aca811ec8fdf9e3c5520cb4a0cc4305f7b /source/blender/makesrna/intern/rna_access.c | |
parent | 1f2c93f9f783a2b0c2fb6ce42e30325a25d58265 (diff) |
fix [#27820] foreach_get on bpy_prop_collections returns weird results
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index e83161b8c62..d9fbdd7caf2 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -2839,7 +2839,7 @@ static int rna_raw_access(ReportList *reports, PointerRNA *ptr, PropertyRNA *pro } /* editable check */ - if(RNA_property_editable(&itemptr, iprop)) { + if(!set || RNA_property_editable(&itemptr, iprop)) { if(a+itemlen > in.len) { BKE_reportf(reports, RPT_ERROR, "Array length mismatch (got %d, expected more).", in.len); err= 1; |