From Lionel Lagarde, "The last field of the LightPointAppearancePalette is only valid for > 15.8 version of

the format."
This commit is contained in:
Robert Osfield
2009-01-14 10:32:20 +00:00
parent 2efce3965a
commit c21eef7afb

View File

@@ -666,7 +666,12 @@ protected:
appearance->fadeOutDuration = in.readFloat32();
appearance->LODRangeRatio = in.readFloat32();
appearance->LODScale = in.readFloat32();
appearance->texturePatternIndex = in.readInt16(-1);
if(document.version() > VERSION_15_8)
appearance->texturePatternIndex = in.readInt16(-1);
else
appearance->texturePatternIndex = -1;
// The final short is reserved; don't bother reading it.
// Add to pool