fix [#27820] foreach_get on bpy_prop_collections returns weird results
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user