From 564b86b7a57113b9c0466a2872508f56ec4d14ba Mon Sep 17 00:00:00 2001 From: Pierre Lepers Date: Sun, 26 Oct 2014 16:06:20 +0100 Subject: [PATCH] fixed data-type filed in geoms streams U16 -> 5, F32 -> 7 --- .../AWDExporter/awdexporter/classesAWDBlocks.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/AwayExtensions-C4D/AWDExporter/awdexporter/classesAWDBlocks.py b/AwayExtensions-C4D/AWDExporter/awdexporter/classesAWDBlocks.py index 44ac9f4..7771795 100644 --- a/AwayExtensions-C4D/AWDExporter/awdexporter/classesAWDBlocks.py +++ b/AwayExtensions-C4D/AWDExporter/awdexporter/classesAWDBlocks.py @@ -790,35 +790,35 @@ def __init__(self,streamType,streamData): if streamType==1:#Vertex self.streamTypeName="Vertex" self.dataType = "f" - self.dataType2 = 4 + self.dataType2 = 7 if streamType==2:#Index self.streamTypeName="Index" self.dataType = "H" - self.dataType2 = 2 + self.dataType2 = 5 if streamType==3:#UV self.streamTypeName="UV" self.dataType = "f" - self.dataType2 = 4 + self.dataType2 = 7 if streamType==4:#VertexNormals self.streamTypeName="VertexNormals" self.dataType = "f" - self.dataType2 = 4 + self.dataType2 = 7 if streamType==5:#VertexTangents self.streamTypeName="VertexTangents" self.dataType = "f" - self.dataType2 = 4 + self.dataType2 = 7 if streamType==6:#JointIndex self.streamTypeName="JointIndex" self.dataType = "H" - self.dataType2 = 2 + self.dataType2 = 5 if streamType==7:#JointWeights self.streamTypeName="JointWeights" self.dataType = "f" - self.dataType2 = 4 + self.dataType2 = 7 if streamType==8:#quads - not used by official AWD self.streamTypeName="quads" self.dataType = "H" - self.dataType2 = 2 + self.dataType2 = 5 class awdSubMesh(object): def __init__(self,materialName,selectionName,selectionIndexe, textureTag):