[Bf-blender-cvs] [ae2827bb521] geometry-nodes: Geometry Nodes: add comment mentioning that custom data might be shared
Jacques Lucke
noreply at git.blender.org
Thu Oct 29 15:42:09 CET 2020
Commit: ae2827bb5215bbf818468d4e355328928f19b3ac
Author: Jacques Lucke
Date: Thu Oct 29 15:42:01 2020 +0100
Branches: geometry-nodes
https://developer.blender.org/rBae2827bb5215bbf818468d4e355328928f19b3ac
Geometry Nodes: add comment mentioning that custom data might be shared
===================================================================
M source/blender/blenkernel/intern/geometry.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/geometry.cc b/source/blender/blenkernel/intern/geometry.cc
index 2ca5fa74261..569acab4642 100644
--- a/source/blender/blenkernel/intern/geometry.cc
+++ b/source/blender/blenkernel/intern/geometry.cc
@@ -237,6 +237,7 @@ GeometryComponent *MeshComponent::copy() const
{
MeshComponent *new_component = new MeshComponent();
if (mesh_ != nullptr) {
+ /* Individual custom data layers might still be shared. */
new_component->mesh_ = BKE_mesh_copy_for_eval(mesh_, true);
new_component->owned_ = true;
}
@@ -308,6 +309,7 @@ GeometryComponent *PointCloudComponent::copy() const
{
PointCloudComponent *new_component = new PointCloudComponent();
if (pointcloud_ != nullptr) {
+ /* Individual custom data layers might still be shared. */
new_component->pointcloud_ = BKE_pointcloud_copy_for_eval(pointcloud_, true);
new_component->owned_ = true;
}
More information about the Bf-blender-cvs
mailing list