Hubs-Foundation / hubs-blender-exporter

The Hubs Blender Add-on enables artists to export their creations to the immersive web with Hubs
Mozilla Public License 2.0
165 stars 50 forks source link

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

Closed keianhzo closed 7 months ago

keianhzo commented 1 year ago

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:

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'