Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/geometry_set.cc
| Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| GeometryComponent *MeshComponent::copy() const | GeometryComponent *MeshComponent::copy() const | ||||
| { | { | ||||
| MeshComponent *new_component = new MeshComponent(); | MeshComponent *new_component = new MeshComponent(); | ||||
| if (mesh_ != nullptr) { | if (mesh_ != nullptr) { | ||||
| new_component->mesh_ = BKE_mesh_copy_for_eval(mesh_, false); | new_component->mesh_ = BKE_mesh_copy_for_eval(mesh_, false); | ||||
| new_component->ownership_ = GeometryOwnershipType::Owned; | new_component->ownership_ = GeometryOwnershipType::Owned; | ||||
| new_component->vertex_group_names_ = blender::Map(vertex_group_names_); | |||||
| } | } | ||||
| return new_component; | return new_component; | ||||
| } | } | ||||
| void MeshComponent::clear() | void MeshComponent::clear() | ||||
| { | { | ||||
| BLI_assert(this->is_mutable()); | BLI_assert(this->is_mutable()); | ||||
| if (mesh_ != nullptr) { | if (mesh_ != nullptr) { | ||||
| ▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines | |||||