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:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2021-08-19 21:35:47 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2021-08-19 21:36:34 +0300
commit962153dbedb8d6355624516847926df221d9ce63 (patch)
tree442191bad3e655134f2400237f0db933f3809a9b
parentc0dd6f1164e0247c7e21d57457c88a053e38f7da (diff)
Cycles: missing case for ignoring subdivision vertex normals
This was missing from rBb8ecdbcd964a.
-rw-r--r--intern/cycles/render/geometry.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/render/geometry.cpp b/intern/cycles/render/geometry.cpp
index a8e4db38180..7ec1d2d9abb 100644
--- a/intern/cycles/render/geometry.cpp
+++ b/intern/cycles/render/geometry.cpp
@@ -805,6 +805,11 @@ void GeometryManager::device_update_attributes(Device *device,
Mesh *mesh = static_cast<Mesh *>(geom);
Attribute *subd_attr = mesh->subd_attributes.find(req);
+ /* Vertex normals are stored in DeviceScene.tri_vnormal. */
+ if (subd_attr && subd_attr->std == ATTR_STD_VERTEX_NORMAL) {
+ continue;
+ }
+
update_attribute_element_size(mesh,
subd_attr,
ATTR_PRIM_SUBD,