Browse Source

(Remove unnecessary addition of 1.0 to UV Y)

pull/243/head
Jrius 4 years ago
parent
commit
9443b62e99
  1. 2
      korman/exporter/animation.py
  2. 2
      korman/exporter/material.py

2
korman/exporter/animation.py

@ -420,7 +420,7 @@ class AnimationConverter:
scale = kwargs[scale_path]
translation = hsVector3(pos[0] - (scale[0] - 1.0) / 2.0,
1.0 - pos[1] - (scale[1] - 1.0) / 2.0,
-pos[1] - (scale[1] - 1.0) / 2.0,
pos[2] - (scale[2] - 1.0) / 2.0)
matrix = hsMatrix44()
matrix.setTranslate(translation)

2
korman/exporter/material.py

@ -426,7 +426,7 @@ class MaterialConverter:
# Transform
xform = hsMatrix44()
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)
xform.setTranslate(translation)
xform.setScale(hsVector3(*slot.scale))

Loading…
Cancel
Save