Skip to content

Commit

Permalink
Improve comment + add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Jul 17, 2024
1 parent dd77f46 commit e323f0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/ayon_maya/plugins/load/load_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,11 @@ def _set_display_handle(self, group_name: str):
"""Enable display handle and move select handle to object center"""
cmds.setAttr(f"{group_name}.displayHandle", True)
# get bounding box
# Bugfix: We force a refresh here because there is a
# reproducable case with Advanced Skeleton rig where the
# call to `exactWorldBoundingBox` directly after the
# reference without it breaks the behavior of the rigs
# making it appear as if parts of the mesh are static.
# Bugfix: We force a refresh here because there is a reproducable case
# with Advanced Skeleton rig where the call to `exactWorldBoundingBox`
# directly after the reference without it breaks the behavior of the
# rigs making it appear as if parts of the mesh are static.
# TODO: Preferably we have a better fix than requiring refresh on loads
cmds.refresh()
bbox = cmds.exactWorldBoundingBox(group_name)
# get pivot position on world space
Expand Down

0 comments on commit e323f0c

Please sign in to comment.