Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-08-12 18:36:37 +0300
committerJacques Lucke <jacques@blender.org>2021-08-12 18:36:53 +0300
commite0fd5fef1236eff14d1c6dc1c7f6ba27a9ff5787 (patch)
tree93dc0416601065dadba697680685aaacc64b476c
parentf801d40dafc06be2c0827e1b858c84800f4ddad8 (diff)
Geometry Nodes: tag normals dirty after join
Under some circumstances the normals were not tagged dirty even though they are.
-rw-r--r--source/blender/blenkernel/intern/geometry_set_instances.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/geometry_set_instances.cc b/source/blender/blenkernel/intern/geometry_set_instances.cc
index 90a97264c8f..32a65ab47bf 100644
--- a/source/blender/blenkernel/intern/geometry_set_instances.cc
+++ b/source/blender/blenkernel/intern/geometry_set_instances.cc
@@ -491,6 +491,10 @@ static Mesh *join_mesh_topology_and_builtin_attributes(Span<GeometryInstanceGrou
}
}
+ /* A possible optimization is to only tag the normals dirty when there are transforms that change
+ * normals. */
+ BKE_mesh_normals_tag_dirty(new_mesh);
+
return new_mesh;
}