Proper fix for T54337

Accidentally checked the wrong variable in fa01a1738b.
This commit is contained in:
Mai Lavelle 2018-04-04 06:32:39 -04:00
parent 677d699645
commit 49f77b0d83
1 changed files with 2 additions and 2 deletions

View File

@ -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()]);