|
|
@ -427,8 +427,11 @@ class AnimationConverter: |
|
|
|
pos = kwargs[pos_path] |
|
|
|
pos = kwargs[pos_path] |
|
|
|
scale = kwargs[scale_path] |
|
|
|
scale = kwargs[scale_path] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
translation = hsVector3(pos[0] - (scale[0] - 1.0) / 2.0, |
|
|
|
|
|
|
|
-pos[1] - (scale[1] - 1.0) / 2.0, |
|
|
|
|
|
|
|
pos[2] - (scale[2] - 1.0) / 2.0) |
|
|
|
matrix = hsMatrix44() |
|
|
|
matrix = hsMatrix44() |
|
|
|
matrix.setTranslate(hsVector3(*pos)) |
|
|
|
matrix.setTranslate(translation) |
|
|
|
matrix.setScale(hsVector3(*scale)) |
|
|
|
matrix.setScale(hsVector3(*scale)) |
|
|
|
return matrix |
|
|
|
return matrix |
|
|
|
|
|
|
|
|
|
|
|