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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-03-26 17:21:13 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-03-26 17:21:13 +0400
commitd27a1a9acd3cc4e64334da9c872f3fe71f80a215 (patch)
treedf1d1a2b3b7cd3e9171424a0e97709c3c40cfd51 /source/blender/editors
parent862a1a6afa02d61335402df5b7b552e8289ce625 (diff)
Fix #30676: UV unwrap did not create UV map with proper default coordinates.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/uvedit/uvedit_unwrap_ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index 107a92fd3ef..3c150769e50 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -105,6 +105,7 @@ static int ED_uvedit_ensure_uvs(bContext *C, Scene *scene, Object *obedit)
if (em && em->bm->totface && !CustomData_has_layer(&em->bm->pdata, CD_MTEXPOLY)) {
BM_data_layer_add(em->bm, &em->bm->pdata, CD_MTEXPOLY);
BM_data_layer_add(em->bm, &em->bm->ldata, CD_MLOOPUV);
+ ED_mesh_uv_loop_reset_ex(C, obedit->data, 0);
}
if (!ED_uvedit_test(obedit)) {