fix [#27820] foreach_get on bpy_prop_collections returns weird results

This commit is contained in:
Campbell Barton
2011-07-01 08:48:00 +00:00
parent 1f2c93f9f7
commit 1072ba66e0
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ static int return_editmesh_vgroup(Object *obedit, EditMesh *em, char *name, floa
if(obedit->actdef) {
const int defgrp_index= obedit->actdef-1;
int i, totvert=0;
int totvert=0;
MDeformVert *dvert;
EditVert *eve;

View File

@@ -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;