mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 16:42:08 +02:00
Fix build warnings
This commit is contained in:
parent
99386565b0
commit
725d4ee643
3 changed files with 4 additions and 4 deletions
|
@ -1480,7 +1480,7 @@ HFMModel* FBXSerializer::extractHFMModel(const hifi::VariantHash& mapping, const
|
|||
// of skinning information in FBX
|
||||
QString jointID = _connectionChildMap.value(clusterID);
|
||||
hfmCluster.jointIndex = modelIDs.indexOf(jointID);
|
||||
if (hfmCluster.jointIndex == -1) {
|
||||
if (hfmCluster.jointIndex == hfm::Cluster::INVALID_JOINT_INDEX) {
|
||||
qCDebug(modelformat) << "Joint not in model list: " << jointID;
|
||||
hfmCluster.jointIndex = 0;
|
||||
}
|
||||
|
@ -1514,7 +1514,7 @@ HFMModel* FBXSerializer::extractHFMModel(const hifi::VariantHash& mapping, const
|
|||
{
|
||||
HFMCluster cluster;
|
||||
cluster.jointIndex = modelIDs.indexOf(modelID);
|
||||
if (cluster.jointIndex == -1) {
|
||||
if (cluster.jointIndex == hfm::Cluster::INVALID_JOINT_INDEX) {
|
||||
qCDebug(modelformat) << "Model not in model list: " << modelID;
|
||||
cluster.jointIndex = 0;
|
||||
}
|
||||
|
|
|
@ -124,7 +124,8 @@ public:
|
|||
/// A single binding to a joint.
|
||||
class Cluster {
|
||||
public:
|
||||
uint32_t jointIndex;
|
||||
static const uint32_t INVALID_JOINT_INDEX { (uint32_t)-1 };
|
||||
uint32_t jointIndex { INVALID_JOINT_INDEX };
|
||||
glm::mat4 inverseBindMatrix;
|
||||
Transform inverseBindTransform;
|
||||
};
|
||||
|
|
|
@ -45,7 +45,6 @@ ReweightedDeformers getReweightedDeformers(size_t numMeshVertices, const hfm::Dy
|
|||
weightAccumulators.resize(numClusterIndices, 0.0f);
|
||||
for (uint16_t i = 0; i < (uint16_t)deformers.size(); ++i) {
|
||||
const hfm::Deformer& deformer = *deformers[i];
|
||||
const hfm::Cluster& cluster = dynamicTransform->clusters[i];
|
||||
|
||||
if (deformer.indices.size() != deformer.weights.size()) {
|
||||
reweightedDeformers.trimmedToMatch = true;
|
||||
|
|
Loading…
Reference in a new issue