Skip to content

Commit

Permalink
#18 remove repetitive check
Browse files Browse the repository at this point in the history
  • Loading branch information
Wasserwecken committed Jul 9, 2024
1 parent 165caa4 commit 97fb899
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cff-version: 1.2.0
message: "You may want to cite this software like below."
title: "Read, write, edit and create .bvh files with hierarchical 3D transforms"
date-released: 2022-12-17
version: 1.4.5
version: 1.4.6
authors:
- family-names: Dolch
given-names: Eric
Expand Down
2 changes: 1 addition & 1 deletion bvhio/lib/bvh/BvhJoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def getTip(self) -> glm.vec3:
elif children > 1:
tip = sum(child.Offset for child in self.Children) / children
else:
tip = self.EndSite if glm.length(self.EndSite) > 0.001 else glm.vec3(0, 1, 0)
tip = self.EndSite

return tip if glm.length2(tip) > 0.001 else glm.vec3(0, 1, 0)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "bvhio"
version = "1.4.5"
version = "1.4.6"
authors = [ { name="Wasserwecken", email="author@example.com" }, ]
description = "Read, write, edit and create .bvh files with hierarchical 3D transforms."
readme = "README.md"
Expand Down

0 comments on commit 97fb899

Please sign in to comment.