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
path: root/source
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2021-02-03 17:09:06 +0300
committerJulian Eisel <julian@blender.org>2021-02-03 17:09:06 +0300
commite1f38b21693af75abba757c0dd89249dc6ef2e39 (patch)
tree9611e0dc22645098803eded5af6f33a34a46204a /source
parente69217b2834adef47224bcdd07aff32378bd45d2 (diff)
Fix incorrect mesh selection duplication in internal utility function
`BKE_mesh_new_nomain_from_template_ex()` would duplicate the mesh selection storage of the destination mesh to the destination mesh. Since that mesh was default initialized at this point, the selection was `NULL`, so the duplication call is essentially a no-op. Mistake in 7efc75c7092b. Differential Revision: https://developer.blender.org/D10009 Reviewed by: Sybren Stüvel
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c
index 02588bf144e..622f6d7a7b8 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -941,7 +941,7 @@ Mesh *BKE_mesh_new_nomain_from_template_ex(const Mesh *me_src,
Mesh *me_dst = BKE_id_new_nomain(ID_ME, NULL);
- me_dst->mselect = MEM_dupallocN(me_dst->mselect);
+ me_dst->mselect = MEM_dupallocN(me_src->mselect);
me_dst->totvert = verts_len;
me_dst->totedge = edges_len;