[Bf-blender-cvs] [d8e435a73a2] master: Fix T64210: crash using Live Unwrap without UVMap

Philipp Oeser noreply at git.blender.org
Tue May 7 11:25:40 CEST 2019


Commit: d8e435a73a22bf3271270ede7f86764fc1feaf60
Author: Philipp Oeser
Date:   Tue May 7 10:09:22 2019 +0200
Branches: master
https://developer.blender.org/rBd8e435a73a22bf3271270ede7f86764fc1feaf60

Fix T64210: crash using Live Unwrap without UVMap

Reviewers: brecht

Maniphest Tasks: T64210

Differential Revision: https://developer.blender.org/D4817

===================================================================

M	source/blender/editors/uvedit/uvedit_unwrap_ops.c

===================================================================

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)) ||



More information about the Bf-blender-cvs mailing list