[Bf-blender-cvs] [701338d31c7] master: Fix T63407: 'Select linked' operator in UV editor is broken in when multi-object-editing contains an empty mesh
Philipp Oeser
noreply at git.blender.org
Thu Dec 19 13:43:42 CET 2019
Commit: 701338d31c7718ae64637c3fe24ddd03a977ae0c
Author: Philipp Oeser
Date: Wed Dec 18 16:15:48 2019 +0100
Branches: master
https://developer.blender.org/rB701338d31c7718ae64637c3fe24ddd03a977ae0c
Fix T63407: 'Select linked' operator in UV editor is broken in when multi-object-editing contains an empty mesh
Since BM_uv_vert_map_create would return NULL for an empty mesh, code
would then return from uv_select_linked_multi [where it should just skip
and continue instead...]
Maniphest Tasks: T63407
Differential Revision: https://developer.blender.org/D6441
===================================================================
M source/blender/editors/uvedit/uvedit_ops.c
===================================================================
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index eb3d47ba1b5..1de4d05a721 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -1286,7 +1286,7 @@ static void uv_select_linked_multi(Scene *scene,
vmap = BM_uv_vert_map_create(em->bm, limit, !select_faces, false);
if (vmap == NULL) {
- return;
+ continue;
}
stack = MEM_mallocN(sizeof(*stack) * (em->bm->totface + 1), "UvLinkStack");
More information about the Bf-blender-cvs
mailing list