|
|
@ -426,7 +426,7 @@ class MaterialConverter: |
|
|
|
# Transform |
|
|
|
# Transform |
|
|
|
xform = hsMatrix44() |
|
|
|
xform = hsMatrix44() |
|
|
|
translation = hsVector3(slot.offset.x - (slot.scale.x - 1.0) / 2.0, |
|
|
|
translation = hsVector3(slot.offset.x - (slot.scale.x - 1.0) / 2.0, |
|
|
|
1.0 - slot.offset.y - (slot.scale.y - 1.0) / 2.0, |
|
|
|
-slot.offset.y - (slot.scale.y - 1.0) / 2.0, |
|
|
|
slot.offset.z - (slot.scale.z - 1.0) / 2.0) |
|
|
|
slot.offset.z - (slot.scale.z - 1.0) / 2.0) |
|
|
|
xform.setTranslate(translation) |
|
|
|
xform.setTranslate(translation) |
|
|
|
xform.setScale(hsVector3(*slot.scale)) |
|
|
|
xform.setScale(hsVector3(*slot.scale)) |
|
|
|