skelform-python 0.4.2__tar.gz → 0.4.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: skelform_python
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: SkelForm runtime for Python
5
5
  Author-email: Retropaint <darkglasses1122@gmail.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "skelform_python"
7
- version = "0.4.2"
7
+ version = "0.4.3"
8
8
  authors = [
9
9
  { name="Retropaint", email="darkglasses1122@gmail.com" },
10
10
  ]
@@ -15,7 +15,6 @@ class Vec2:
15
15
 
16
16
  def __add__(self, other):
17
17
  return Vec2(self.x + other.x, self.y + other.y)
18
-
19
18
  def __mul__(self, other):
20
19
  if isinstance(other, float):
21
20
  return Vec2(self.x * other, self.y * other)
@@ -242,6 +241,7 @@ def construct_verts(bones: list[Bone]):
242
241
  continue
243
242
 
244
243
  for v in range(len(bones[b].vertices)):
244
+ bones[b].vertices[v].pos = bones[b].vertices[v].init_pos
245
245
  bones[b].vertices[v].pos = inherit_vert(bones[b].vertices[v].pos, bones[b])
246
246
 
247
247
  if not bones[b].binds:
@@ -263,8 +263,8 @@ def construct_verts(bones: list[Bone]):
263
263
  if not bind.is_path:
264
264
  vert: Vertex = bones[b].vertices[id]
265
265
  weight: float = bind.verts[v].weight
266
- endpos: Vec2 = inherit_vert(vert.initPos, bindBone) - vert.pos
267
- vert.pos += endPos * weight
266
+ endpos: Vec2 = inherit_vert(vert.init_pos, bindBone) - vert.pos
267
+ vert.pos += endpos * weight
268
268
  continue
269
269
 
270
270
  binds = bones[b].binds