瀏覽代碼

A fix for incomplete skin clusters

Josh Yelon 20 年之前
父節點
當前提交
74b498d355
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      pandatool/src/mayaeggimport/mayaEggLoader.cxx

+ 2 - 0
pandatool/src/mayaeggimport/mayaEggLoader.cxx

@@ -656,6 +656,8 @@ void MayaEggLoader::CreateSkinCluster(MayaEggMesh *M)
       values[vert->_index * joints.size() + joint->_index] = (float)strength;
     }
   }
+  for (unsigned int i=0; i<1024; i++)
+    skinCluster.setWeights(M->_shape_dag_path, component.object(), i, 0.0, false, &oldvalues);
   skinCluster.setWeights(M->_shape_dag_path, component.object(), influenceIndices, values, false, &oldvalues);
 
   for (unsigned int i=0; i<joints.size(); i++) {