Cleanup: Use C++ types for vectors

And remove unused members.
This commit is contained in:
Germano Cavalcante
2024-03-06 11:35:51 -03:00
parent 388448cdcb
commit d53d7dea71
2 changed files with 7 additions and 16 deletions

View File

@@ -48,17 +48,10 @@ struct TransConvertTypeInfo {
* Structure used for Edge Slide operation.
*/
struct TransDataEdgeSlideVert {
/** #TransDataGenericSlideVert (header) */
struct BMVert *v;
struct LinkNode **cd_loop_groups;
float v_co_orig[3];
/* end generic */
blender::float3 v_co_orig;
blender::float3 dir_side[2];
float edge_len;
/* add origvert.co to get the original locations */
float dir_side[2][3];
int loop_nr;
};
@@ -66,13 +59,9 @@ struct TransDataEdgeSlideVert {
* Structure used for Vert Slide operation.
*/
struct TransDataVertSlideVert {
/** #TransDataGenericSlideVert (header) */
BMVert *v;
LinkNode **cd_loop_groups;
float co_orig_3d[3];
/* end generic */
float (*co_link_orig_3d)[3];
blender::float3 co_orig_3d;
blender::float3 *co_link_orig_3d;
int co_link_tot;
int co_link_curr;
};

View File

@@ -38,6 +38,8 @@
#include "transform_convert.hh"
using namespace blender;
/* -------------------------------------------------------------------- */
/** \name Container TransCustomData Creation
* \{ */
@@ -2217,7 +2219,7 @@ TransDataVertSlideVert *transform_mesh_vert_slide_data_create(const TransDataCon
}
}
sv_array[j].co_link_orig_3d = static_cast<float(*)[3]>(
sv_array[j].co_link_orig_3d = static_cast<float3(*)>(
MEM_mallocN(sizeof(*sv_array[j].co_link_orig_3d) * k, __func__));
sv_array[j].co_link_tot = k;