Blender Git Commit Log

Git Commits -> Revision e90b6ee

Revision e90b6ee by Campbell Barton (master)
January 4, 2010, 22:30 (GMT)
patch from Benoit Bolsee (ben2610) for 4 bugs in report [#20527] Several bugs in RNA

from the report...


# bug 1. UV properties are not raw editable but are reported
# as RAW_TYPE_INT by RNA causing wrong conversion
# internally (bpy_rna.c line 2205)
# bug 2. raw update of UV coordinates crash blender (rna_access.c line 252)
mtfaces.foreach_set("uv", rawuvs)
# workaround:
#for i in range(int(len(faces)/4)):
# mtfaces[i].uv = uvs[i]

# bug 3. raw update of non-array property fails (rna_access.c line 2270)
mfaces.foreach_set("material_index", mats)
# workaround:
# for i in range(int(len(mfaces))):
# mfaces[i].material_index = mats[i]

# bug 4. It is not possible to add a vertex color layer using mesh API.
me.add_vertex_color()
# no workaround...


Commit Details:

Full Hash: e90b6eefb191693b0ffe1d5a0b1bc399fc5b0aef
SVN Revision: 25722
Parent Commit: 7f03297
Lines Changed: +99, -9

7 Modified Paths:

/source/blender/makesrna/intern/makesrna.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_access.c (+71, -6) (Diff)
/source/blender/makesrna/intern/rna_define.c (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_mesh_api.c (+11, -0) (Diff)
/source/blender/makesrna/RNA_types.h (+1, -0) (Diff)
/source/blender/python/intern/bpy_rna.c (+7, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021