- FBX: avoid more gcc warnings.

This commit is contained in:
Alexander Gessler
2013-04-08 20:13:29 +02:00
parent 232e69dc2a
commit a288a631e2
3 changed files with 7 additions and 8 deletions

View File

@@ -97,9 +97,9 @@ public:
public:
Converter(aiScene* out, const Document& doc)
: out(out)
: defaultMaterialIndex()
, out(out)
, doc(doc)
, defaultMaterialIndex()
{
// animations need to be converted first since this will
// populate the node_anim_chain_bits map, which is needed
@@ -1171,7 +1171,6 @@ private:
ai_assert(cluster);
const WeightIndexArray& indices = cluster->GetIndices();
const WeightArray& weights = cluster->GetWeights();
if(indices.empty()) {
continue;
@@ -1198,7 +1197,7 @@ private:
count_out_indices.push_back(0);
for(unsigned int i = 0; i < count; ++i) {
if (no_mat_check || mats[geo.FaceForVertexIndex(out_idx[i])] == materialIndex) {
if (no_mat_check || static_cast<size_t>(mats[geo.FaceForVertexIndex(out_idx[i])]) == materialIndex) {
if (index_out_indices.back() == no_index_sentinel) {
index_out_indices.back() = out_indices.size();