Blender Git Loki

Git Commits -> Revision dbdd79f

Revision dbdd79f by Bastien Montagne (master)
March 5, 2019, 20:34 (GMT)
UV/VCol layers creation: add option to not init those new data.

`ED_mesh_uv_texture_add()`/`ED_mesh_color_add()` would always either
copy data from current active one, or (for UVs), generate default
'valid' UVs for every face.

This commit adds an option to not do that, just keeping default values
from raw CDLayer creation. It is only used/exposed from RNA API
currently.

This is especially useful for importer add-ons, since some formats
support multiple layers of those kind, as well as 'partial' dataset not
explicitely defining values for all mesh items.

Preliminary step to fix T62224.

Commit Details:

Full Hash: dbdd79fabe2934de6184c0230f91b2e8af716a7b
Parent Commit: 4326f8a
Lines Changed: +24, -19

5 Modified Paths:

/source/blender/editors/include/ED_mesh.h (+2, -2) (Diff)
/source/blender/editors/mesh/mesh_data.c (+11, -11) (Diff)
/source/blender/editors/physics/dynamicpaint_ops.c (+1, -1) (Diff)
/source/blender/editors/uvedit/uvedit_unwrap_ops.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+9, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021