awaytools/AwayExtensions-C4D — pull request #3 by plepers (2014-10-26 15:07:14+00:00)
Title: Wrong "data type" field in sub-geometries streams datas

Hi,

In C4D exporter data type field seems to be set to the size (in bytes) of the underlying data type, 2 for U16 and 4 for F32, and don't take precision into account ( float or double)

Ok, specifications are not perfectly clear about this field.
But according to awd-sdk and AwayBuilder encoder implementation, this field should match one of the AWD_field_type, depending on stream precision:

Integer : 5 (AWD_FIELD_UINT16)
Floats low : 7 (AWD_FIELD_FLOAT32)
Floats hi : 8 (AWD_FIELD_FLOAT64)

The types enum :
https://github.com/awaytools/awd-sdk/blob/master/cpp-libawd/include/awd_types.h#L39

AWD-SDK stream impl:
https://github.com/awaytools/awd-sdk/blob/master/cpp-libawd/src/stream.cc#L49

AwayBuilder AS3 impl
https://github.com/awaytools/AwayBuilder/blob/master/awaybuilder-core/src/awaybuilder/utils/encoders/AWDEncoder.as#L1931