Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mesh.cc
| Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | static void mesh_copy_data(Main *bmain, ID *id_dst, const ID *id_src, const int flag) | ||||
| * Currently this is used for edit-mesh although it could be used for sculpt or other | * Currently this is used for edit-mesh although it could be used for sculpt or other | ||||
| * kinds of data specific to an objects mode. | * kinds of data specific to an objects mode. | ||||
| * | * | ||||
| * The flag signals that the mesh hasn't been modified from the data that generated it, | * The flag signals that the mesh hasn't been modified from the data that generated it, | ||||
| * allowing us to use the object-mode data for drawing. | * allowing us to use the object-mode data for drawing. | ||||
| * | * | ||||
| * While this could be the callers responsibility, keep here since it's | * While this could be the callers responsibility, keep here since it's | ||||
| * highly unlikely we want to create a duplicate and not use it for drawing. */ | * highly unlikely we want to create a duplicate and not use it for drawing. */ | ||||
| mesh_dst->runtime.is_original = false; | mesh_dst->runtime.is_original_bmesh = false; | ||||
| /* Only do tessface if we have no polys. */ | /* Only do tessface if we have no polys. */ | ||||
| const bool do_tessface = ((mesh_src->totface != 0) && (mesh_src->totpoly == 0)); | const bool do_tessface = ((mesh_src->totface != 0) && (mesh_src->totpoly == 0)); | ||||
| CustomData_MeshMasks mask = CD_MASK_MESH; | CustomData_MeshMasks mask = CD_MASK_MESH; | ||||
| if (mesh_src->id.tag & LIB_TAG_NO_MAIN) { | if (mesh_src->id.tag & LIB_TAG_NO_MAIN) { | ||||
| /* For copies in depsgraph, keep data like #CD_ORIGINDEX and #CD_ORCO. */ | /* For copies in depsgraph, keep data like #CD_ORIGINDEX and #CD_ORCO. */ | ||||
| ▲ Show 20 Lines • Show All 2,095 Lines • Show Last 20 Lines | |||||