From 69c967f85f59fc8b7400c5dd6da79b3b34b2bcc3 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 7 Jul 2015 16:36:41 -0400 Subject: [PATCH] Export layer transforms --- korman/exporter/material.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index f9c9ea9..421d8d5 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -229,6 +229,12 @@ class MaterialConverter: else: print(" No UVMap specified... Blindly using the first one, maybe it exists :|") + # Transform + xform = hsMatrix44() + xform.setTranslate(hsVector3(*slot.offset)) + xform.setScale(hsVector3(*slot.scale)) + layer.transform = xform + state = layer.state if slot.use_stencil: hsgmat.compFlags |= hsGMaterial.kCompNeedsBlendChannel