Page MenuHome

MDD exporter: fix superfluous frame data, allow starting from frame 0
AbandonedPublic

Authored by Campbell Barton (campbellbarton) on Apr 15 2016, 1:29 PM.

Details

Summary

This patch fixes 2 problems with the MDD exporter:

  1. The MDD exporter inserts a dummy frame at the start of the exported data. This undesirably duplicates the first frame and pushes the actual ending frame data past the official end of the MDD file. You can easily spot this by comparing the actual exported MDD data size with the expected MDD data size of 4 bytes * (1 + 1 + framecount + 3 * framecount * pointcount).
  1. The MDD exporter currently does not allow exporting starting at frame 0, while the importer does allow so (that one even allows starting frame -300000). This patch at least allows frame 0 to be set as the first frame for MDD exporting.

This patch makes the MDD exporter behave consistently with the Blender interface.

Diff Detail