skelform-python 0.4.0__tar.gz → 0.4.1__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.0 → skelform_python-0.4.1}/PKG-INFO +1 -1
- {skelform_python-0.4.0 → skelform_python-0.4.1}/pyproject.toml +1 -1
- {skelform_python-0.4.0 → skelform_python-0.4.1}/skelform_python/__init__.py +8 -0
- {skelform_python-0.4.0 → skelform_python-0.4.1}/.gitignore +0 -0
- {skelform_python-0.4.0 → skelform_python-0.4.1}/README.md +0 -0
- {skelform_python-0.4.0 → skelform_python-0.4.1}/readme.md +0 -0
- {skelform_python-0.4.0 → skelform_python-0.4.1}/skelform_python/tests.py +0 -0
- {skelform_python-0.4.0 → skelform_python-0.4.1}/uv.lock +0 -0
|
@@ -413,6 +413,14 @@ def check_bone_flip(bone_rot: float, scale: Vec2):
|
|
|
413
413
|
return bone_rot
|
|
414
414
|
|
|
415
415
|
|
|
416
|
+
def get_bone_texture(bone_tex: str, styles: [Style]):
|
|
417
|
+
for style in styles:
|
|
418
|
+
for tex in style.textures:
|
|
419
|
+
if tex.name == bone_tex:
|
|
420
|
+
return tex
|
|
421
|
+
return False
|
|
422
|
+
|
|
423
|
+
|
|
416
424
|
# Returns a (bone.id, Texture) map of textures to draw bones with.
|
|
417
425
|
def setup_bone_textures(bones: [Bone], styles: [Style]):
|
|
418
426
|
final_textures = {}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|