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.
- {skelform_python-0.4.2 → skelform_python-0.4.3}/PKG-INFO +1 -1
- {skelform_python-0.4.2 → skelform_python-0.4.3}/pyproject.toml +1 -1
- {skelform_python-0.4.2 → skelform_python-0.4.3}/skelform_python/__init__.py +3 -3
- {skelform_python-0.4.2 → skelform_python-0.4.3}/.gitignore +0 -0
- {skelform_python-0.4.2 → skelform_python-0.4.3}/README.md +0 -0
- {skelform_python-0.4.2 → skelform_python-0.4.3}/readme.md +0 -0
- {skelform_python-0.4.2 → skelform_python-0.4.3}/skelform_python/tests.py +0 -0
|
@@ -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.
|
|
267
|
-
vert.pos +=
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|