Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fit Shape теперь учитывает размеры меша #806

Merged

Conversation

igelbox
Copy link
Collaborator

@igelbox igelbox commented Sep 8, 2024

И поворот, и прочие аффинные преобразования.
Думаю, работать в world-системе-координат - проще для понимания => багов будет меньше.

[fixes #803]

@igelbox igelbox force-pushed the issues/803/wrong-bone-shape-fit branch from 6abb6fa to d550eeb Compare September 8, 2024 16:39
@igelbox igelbox force-pushed the issues/803/wrong-bone-shape-fit branch from d550eeb to cca36d8 Compare September 8, 2024 17:01
@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 86.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 78.88%. Comparing base (1a6317f) to head (eb1048b).
Report is 3 commits behind head on develop.

Files with missing lines Patch % Lines
io_scene_xray/ops/edit_helpers/bone_shape.py 80.00% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #806   +/-   ##
========================================
  Coverage    78.88%   78.88%           
========================================
  Files          226      226           
  Lines        20945    20947    +2     
  Branches      3506     3507    +1     
========================================
+ Hits         16523    16525    +2     
  Misses        3516     3516           
  Partials       906      906           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -137,7 +137,7 @@ def _bone_objects(bone):
break


def bone_vertices(bone):
def bone_vertices(bone, in_world_coordinates=False):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы сделал True, но оно где-то в OGF используется, а мне так не хочется лезть в это древнее зло)

@igelbox igelbox marked this pull request as ready for review September 8, 2024 17:10
@@ -172,6 +173,17 @@ def assertReportsNotContains(self, report_type=None, re_message=None):
report
))

def assertAlmostEqualV(self, first, second, delta, msg=None):
class V:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Может однобуквенные идентификаторы лучше не создавать? И в таких именах assertAlmostEqualV писать в конце подробнее: assertAlmostEqualVec?

@PavelBlend PavelBlend merged commit d54b495 into PavelBlend:develop Sep 8, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants