nutti / Magic-UV

Blender Add-on: Magic UV
http://nutti.github.io/Magic-UV/
Other
635 stars 46 forks source link

AttributeError in 6.5.0-6.6.0 #161

Closed EugeneDudavkin closed 2 years ago

EugeneDudavkin commented 2 years ago

System Information

Description about the bug
If select non mesh object and hit F3 -> Error

Python: Traceback (most recent call last):
  File "...\blender-3.2.1-windows-x64\3.2\scripts\addons\magic_uv\op\copy_paste_uv_object.py", line 148, in draw
    uv_maps = compat.get_object_uv_layers(obj).keys()
  File "...\blender-3.2.1-windows-x64\3.2\scripts\addons\magic_uv\utils\compatibility.py", line 121, in get_object_uv_layers
    return obj.data.uv_layers
AttributeError: 'Camera' object has no attribute 'uv_layers'
nutti commented 2 years ago

This issue is fixed by Blender official patch. https://developer.blender.org/rBA4b25801f640ee49f49c63d4de6871504236ce6b7

The patch has already merged to this repo. https://github.com/nutti/Magic-UV/commit/545652261e9c59ffa02ed29333b4a0bf4c667dbb

nutti commented 2 years ago

Sorry this error is different from the Blender official patch. But this issue is now fixed.