Commit 7a0d28c1 authored by frankie's avatar frankie 💬

fixes on 2.8 module

parent 9b516b30
......@@ -30,7 +30,7 @@ class SSType(enum.IntEnum):
SSMUSCLE = 7
SSMat = mathutils.Matrix()
SSMat[0] = mathutils.Vector((-1,0,0,0))
SSMat[0] = mathutils.Vector((1,0,0,0))
SSMat[1] = mathutils.Vector((0,0,1,0))
SSMat[2] = mathutils.Vector((0,1,0,0))
SSMat[3] = mathutils.Vector((0,0,0,1))
\ No newline at end of file
......@@ -569,7 +569,7 @@ class SSMesh():
if v.ss_type != constants.SSType.SSDOT and v.ss_type != constants.SSType.SSANCHOR:
continue
mat_loc = constants.SSMat * mathutils.Matrix.Translation((v.vertex.co[0], v.vertex.co[1], v.vertex.co[2]))
mat_loc = constants.SSMat @ mathutils.Matrix.Translation((v.vertex.co[0], v.vertex.co[1], v.vertex.co[2]))
pos = mat_loc.to_translation()
if v.ss_type == constants.SSType.SSDOT:
......@@ -577,7 +577,7 @@ class SSMesh():
self.dots.append(pos[1])
self.dots.append(pos[2])
mat_loc = constants.SSMat * mathutils.Matrix.Translation((v.vertex.normal[0], v.vertex.normal[1], v.vertex.normal[2]))
mat_loc = constants.SSMat @ mathutils.Matrix.Translation((v.vertex.normal[0], v.vertex.normal[1], v.vertex.normal[2]))
n = mat_loc.to_translation()
self.normals.append(n[0])
self.normals.append(n[1])
......@@ -645,7 +645,6 @@ class SSMesh():
target.append(uv.y)
# and now, the hardcore stuff: the groups
obj.select = True
gid = 0
for g in obj.vertex_groups:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment