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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-05-07 11:09:22 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-05-07 12:23:17 +0300
commitd8e435a73a22bf3271270ede7f86764fc1feaf60 (patch)
treee4e41712017fdf4ca3c8e9456c975303716e30ea /source/blender/editors/uvedit
parent7ebe5b76dc741a5f4af847f5014b437daebced93 (diff)
Fix T64210: crash using Live Unwrap without UVMap
Reviewers: brecht Maniphest Tasks: T64210 Differential Revision: https://developer.blender.org/D4817
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r--source/blender/editors/uvedit/uvedit_unwrap_ops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
index 85393925802..717bc347cf7 100644
--- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c
+++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c
@@ -386,6 +386,10 @@ static ParamHandle *construct_param_handle_multi(Scene *scene,
const int cd_loop_uv_offset = CustomData_get_offset(&bm->ldata, CD_MLOOPUV);
+ if (cd_loop_uv_offset == -1) {
+ continue;
+ }
+
BM_ITER_MESH_INDEX (efa, &iter, bm, BM_FACES_OF_MESH, i) {
if ((BM_elem_flag_test(efa, BM_ELEM_HIDDEN)) ||