Bugfix: fixed a bug that caused importer to fail when mesh had armature
modifier and no vertex groups nor bone envelopes defined.
This commit is contained in:
parent
c09a4b208d
commit
939a0b03ca
@ -282,6 +282,11 @@ import com.jme3.util.BufferUtils;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(maximumWeightsPerVertex == 0) {
|
||||||
|
LOGGER.fine("No vertex group data nor bone envelopes found to attach vertices to bones!");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
LOGGER.fine("Preparing buffers for the mesh.");
|
LOGGER.fine("Preparing buffers for the mesh.");
|
||||||
FloatBuffer weightsFloatData = BufferUtils.createFloatBuffer(vertexListSize * MAXIMUM_WEIGHTS_PER_VERTEX);
|
FloatBuffer weightsFloatData = BufferUtils.createFloatBuffer(vertexListSize * MAXIMUM_WEIGHTS_PER_VERTEX);
|
||||||
ByteBuffer indicesData = BufferUtils.createByteBuffer(vertexListSize * MAXIMUM_WEIGHTS_PER_VERTEX);
|
ByteBuffer indicesData = BufferUtils.createByteBuffer(vertexListSize * MAXIMUM_WEIGHTS_PER_VERTEX);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user