Added clear information about bugged blender file. Rarely a pointer appears whose block cannot be found. This is cerainly a bug of blender and we cannot do anything but properly inform user about the situation.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10124 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
8a6849b40c
commit
071581ad30
@ -90,6 +90,10 @@ public class Pointer {
|
||||
}
|
||||
List<Structure> structures = null;
|
||||
FileBlockHeader dataFileBlock = blenderContext.getFileBlock(oldMemoryAddress);
|
||||
if(dataFileBlock == null) {
|
||||
throw new BlenderFileException("No data stored for address: " +oldMemoryAddress +
|
||||
". Rarely blender makes mistakes when storing data. Try resaving the model after making minor changes. This usually helps.");
|
||||
}
|
||||
if (pointerLevel > 1) {
|
||||
int pointersAmount = dataFileBlock.getSize() / inputStream.getPointerSize() * dataFileBlock.getCount();
|
||||
for (int i = 0; i < pointersAmount; ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user