Blender V5.3
blender::BMeshToMeshParams Struct Reference

#include <bmesh_mesh_convert.hh>

Public Attributes

bool calc_object_remap
bool update_shapekey_indices
bool active_shapekey_to_mvert
struct CustomData_MeshMasks cd_mask_extra

Detailed Description

Definition at line 52 of file bmesh_mesh_convert.hh.

Member Data Documentation

◆ active_shapekey_to_mvert

bool blender::BMeshToMeshParams::active_shapekey_to_mvert

Instead of copying the basis shape-key into the position array, copy the #BMVert.co directly to the Mesh position (used for reading undo data).

Definition at line 69 of file bmesh_mesh_convert.hh.

Referenced by blender::undomesh_from_editmesh().

◆ calc_object_remap

◆ cd_mask_extra

struct CustomData_MeshMasks blender::BMeshToMeshParams::cd_mask_extra

Definition at line 70 of file bmesh_mesh_convert.hh.

Referenced by blender::undomesh_from_editmesh().

◆ update_shapekey_indices

bool blender::BMeshToMeshParams::update_shapekey_indices

This re-assigns shape-key indices. Only do if the BMesh will have continued use to update the mesh & shape key in the future. In the case the BMesh is freed immediately, this can be left false.

This is needed when flushing changes from edit-mode into object mode, so a second flush or edit-mode exit doesn't run with indices that have become invalid from updating the shape-key, see #71865.

Definition at line 64 of file bmesh_mesh_convert.hh.

Referenced by blender::bpy_bmesh_to_mesh(), blender::EDBM_mesh_load_ex(), blender::mesh_separate_loose(), blender::prepare_mesh_for_viewport_render(), and blender::undomesh_from_editmesh().


The documentation for this struct was generated from the following file: