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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: skelform_python
3
- Version: 0.4.0
3
+ Version: 0.4.1
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.0"
7
+ version = "0.4.1"
8
8
  authors = [
9
9
  { name="Retropaint", email="darkglasses1122@gmail.com" },
10
10
  ]
@@ -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