mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-25 04:50:06 +00:00
Fixed bug tranferring new face-weight tag when blending MASKS in Scheme.
This commit is contained in:
parent
49848139f4
commit
43b843e8a7
@ -244,8 +244,14 @@ protected:
|
||||
|
||||
int faceWeightCount = this->GetNumFaceWeights();
|
||||
if (faceWeightCount) {
|
||||
//
|
||||
// If combining face weights, be sure their interpretation (i.e. face-centers
|
||||
// or opposite vertices) is properly set in the destination mask:
|
||||
//
|
||||
if (dst.GetNumFaceWeights() == 0) {
|
||||
dst.SetNumFaceWeights(faceWeightCount);
|
||||
dst.SetFaceWeightsForFaceCenters(this->AreFaceWeightsForFaceCenters());
|
||||
|
||||
for (int i = 0; i < faceWeightCount; ++i) {
|
||||
dst.FaceWeight(i) = thisCoeff * this->FaceWeight(i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user