Browse Source

Export layer transforms

pull/10/head
Adam Johnson 10 years ago
parent
commit
69c967f85f
  1. 6
      korman/exporter/material.py

6
korman/exporter/material.py

@ -229,6 +229,12 @@ class MaterialConverter:
else: else:
print(" No UVMap specified... Blindly using the first one, maybe it exists :|") 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 state = layer.state
if slot.use_stencil: if slot.use_stencil:
hsgmat.compFlags |= hsGMaterial.kCompNeedsBlendChannel hsgmat.compFlags |= hsGMaterial.kCompNeedsBlendChannel

Loading…
Cancel
Save