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