Working for complex skinned exports, still crashes ZE, menus need work
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
from typing import List
|
||||
from .msh_model import *
|
||||
from .msh_utilities import *
|
||||
import mathutils
|
||||
import math
|
||||
from mathutils import Vector, Matrix
|
||||
|
||||
def scale_segments(scale: Vector, segments: List[GeometrySegment]):
|
||||
@@ -125,15 +127,3 @@ def convert_scale_space(vec: Vector) -> Vector:
|
||||
def convert_rotation_space(quat: Quaternion) -> Quaternion:
|
||||
return Quaternion((-quat.w, quat.x, -quat.z, -quat.y))
|
||||
|
||||
|
||||
def to_skeleton_vector_space(vec : Vector):
|
||||
vnew = convert_vector_space(vec)
|
||||
vnew.x *= -1.0
|
||||
return vnew
|
||||
|
||||
def to_skeleton_rotation_space(quat : Quaternion):
|
||||
qnew = convert_rotation_space(quat)
|
||||
qnew.x *= -1.0
|
||||
qnew.y *= -1.0
|
||||
qnew.z *= -1.0
|
||||
return qnew
|
||||
|
||||
Reference in New Issue
Block a user