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

Bone gizmos fail to refresh when multiple objects selected and you shwitch modes #202

Closed
keianhzo opened this issue Feb 23, 2023 · 0 comments · Fixed by #63
Closed

Bone gizmos fail to refresh when multiple objects selected and you shwitch modes #202

keianhzo opened this issue Feb 23, 2023 · 0 comments · Fixed by #63
Assignees
Labels
bug Something isn't working
Milestone

Comments

@keianhzo
Copy link
Contributor

Description
When multiple object are selected and the active object is a bone with a gizmo, we fail to refresh the bone gizmos as we assume that all select objects are bones.

To Reproduce
Steps to reproduce the behavior:

  • Add an armature and add a component with a gizmo
  • Add a mesh
  • Select the mesh, then the armature
  • Switch to edit mode

Expected behavior
All gizmos should be correctly refreshed

Additional context

Traceback (most recent call last):
  File "io_hubs_addon/components/gizmos.py", line 190, in depsgraph_update_post
    if len(ob.data.edit_bones) != ob.data.hubs_old_bones_length:
AttributeError: 'Mesh' object has no attribute 'edit_bones'
@keianhzo keianhzo added the bug Something isn't working label Mar 20, 2023
@keianhzo keianhzo added this to the 1.2.0 milestone Mar 20, 2023
@Exairnous Exairnous self-assigned this Apr 11, 2023
@keianhzo keianhzo modified the milestones: 1.2.0, 1.3.0 May 15, 2023
@keianhzo keianhzo modified the milestones: 1.3.0, 1.2.1 Aug 7, 2023
@keianhzo keianhzo modified the milestones: 1.2.1, 1.2.2 Sep 18, 2023
@keianhzo keianhzo modified the milestones: 1.2.2, 1.4.0 Dec 18, 2023
@Exairnous Exairnous linked a pull request Apr 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants