Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2010-08-27 04:35:59 +0400
committerDalai Felinto <dfelinto@gmail.com>2010-08-27 04:35:59 +0400
commitc15c223ccdc7d28ae9dd240cfcb4a953f453b1fe (patch)
tree5edf66511f40c286577ac4466635d8c70fdb2983 /source/blender/makesrna/intern/rna_ui_api.c
parent240b164a87517ad616ff500cbf16ba901e2ea461 (diff)
Fix for Mesh.uv_textures.new(name="my_uv") returning the wrong uvmap - reported by Vitor Balbio - not in tracker.
The code was taking the last layer, but that is only valid if the mesh has only one kind of CustomData types (e.g. only UVMaps or only VertexColors). The solution I found is to call CustomData_get_named_layer_index instead. To avoid some situations where an uv with this name may already exist and the number of UVs is already the limit we are returning a CDL only when the texture is properly created. As a bonus that also fixes the same problem with VertexColor.
Diffstat (limited to 'source/blender/makesrna/intern/rna_ui_api.c')
0 files changed, 0 insertions, 0 deletions