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
path: root/intern
diff options
context:
space:
mode:
authorMai Lavelle <mai.lavelle@gmail.com>2018-04-04 13:32:39 +0300
committerMai Lavelle <mai.lavelle@gmail.com>2018-04-04 13:36:16 +0300
commit49f77b0d83d1bbb45fff4588c6cbde40bc0e0109 (patch)
tree97f9cd4be6c0f98e0e93f9e21abc256e92936af1 /intern
parent677d699645be41acb96f256a1e2088aa21e5e72b (diff)
Proper fix for T54337
Accidentally checked the wrong variable in fa01a1738bd1e3a6750ff.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/render/mesh_subdivision.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/render/mesh_subdivision.cpp b/intern/cycles/render/mesh_subdivision.cpp
index ea71f71b655..9dd81eb6700 100644
--- a/intern/cycles/render/mesh_subdivision.cpp
+++ b/intern/cycles/render/mesh_subdivision.cpp
@@ -204,7 +204,7 @@ public:
src = dest;
}
- if(num_refiner_verts) {
+ if(num_local_points) {
patch_table->ComputeLocalPointValues(&verts[0], &verts[num_refiner_verts]);
}
@@ -238,7 +238,7 @@ public:
src = dest;
}
- if(num_refiner_verts) {
+ if(num_local_points) {
if(attr.same_storage(attr.type, TypeDesc::TypeFloat)) {
patch_table->ComputeLocalPointValues((OsdValue<float>*)&attr.buffer[0],
(OsdValue<float>*)&attr.buffer[num_refiner_verts * attr.data_sizeof()]);