mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
A fix for incomplete skin clusters
This commit is contained in:
parent
c536465235
commit
74b498d355
@ -656,6 +656,8 @@ void MayaEggLoader::CreateSkinCluster(MayaEggMesh *M)
|
|||||||
values[vert->_index * joints.size() + joint->_index] = (float)strength;
|
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);
|
skinCluster.setWeights(M->_shape_dag_path, component.object(), influenceIndices, values, false, &oldvalues);
|
||||||
|
|
||||||
for (unsigned int i=0; i<joints.size(); i++) {
|
for (unsigned int i=0; i<joints.size(); i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user