Fix: Const warning in editmesh_knife.c

Fixes a warning caused by freeing a const pointer.
This commit removes the const modifier.

Differential Revision: https://developer.blender.org/D13321
This commit is contained in:
Erik Abrahamsson 2021-11-22 23:40:05 +01:00
parent 456d5e14b8
commit 8600d4491f
Notes: blender-bot 2023-02-14 08:58:01 +01:00
Referenced by commit 500ec993f5, Revert "Fix: Const warning in editmesh_knife.c"
4 changed files with 5 additions and 5 deletions

@ -1 +1 @@
Subproject commit 8ee2942570f08d10484bb2328d0d1b0aaaa0367c
Subproject commit 24c2b84192564c2c06a9ab98d8e310433266c2a4

@ -1 +1 @@
Subproject commit f2a08d80ccd3c13af304525778df3905f95bd44d
Subproject commit 4de1bcce5a2caa31131c40cc19f0a1851c2eb635

View File

@ -236,7 +236,7 @@ typedef struct KnifeTool_OpData {
GHash *facetrimap;
KnifeBVH bvh;
const float (**cagecos)[3];
float (**cagecos)[3];
BLI_mempool *kverts;
BLI_mempool *kedges;
@ -3975,7 +3975,7 @@ static void knifetool_init_cagecos(KnifeTool_OpData *kcd, Object *ob, uint base_
BM_mesh_elem_index_ensure(em_eval->bm, BM_VERT);
kcd->cagecos[base_index] = (const float(*)[3])BKE_editmesh_vert_coords_alloc(
kcd->cagecos[base_index] = BKE_editmesh_vert_coords_alloc(
kcd->vc.depsgraph, em_eval, scene_eval, obedit_eval, NULL);
}

@ -1 +1 @@
Subproject commit 2e8c879248822c8e500ed49d79acc605e5aa75b9
Subproject commit b22d19e47f4d0353082f3d9f30ee8d244c5266d5