Magic_uv: 'NoneType' object has no attribute 'uv_layers' when applying transforms to a non-mesh object if addon magic_uv is enabled #105341
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#105341
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10
Graphics card: RTX 3080TI
Blender Version
Broken: 4.1
Worked: (newest version of Blender that worked as expected)
Short description of error
When applying tranforms via the search panel (
f3 > apply all transforms
) or viaObject > Apply > All Transforms
to an empty object (e.g. plain axis) the addonmagic_uv
will throw following python error:Python: Traceback (most recent call last): File "A:\Programme\Windows\BlenderFoundation\4.1\4.1\scripts\addons\magic_uv\op\copy_paste_uv_object.py", line 149, in draw uv_maps = compat.get_object_uv_layers(obj).keys() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "A:\Programme\Windows\BlenderFoundation\4.1\4.1\scripts\addons\magic_uv\utils\compatibility.py", line 120, in get_object_uv_layers return obj.data.uv_layers ^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'uv_layers'
When the addon
magic_uv
is disabled this error does not occur.When applying transforms to an actual mesh this error does not occur.
When pressing
ctrl
+a
>All transforms
this error does not occur.It doesn't matter what transform gets applied.
The error happens for all non-mesh object types, like empties or path based object with no actual mesh and thus no uv layers.
It has no effect on the applying transforms, it's just to some extent annoying to see some error message unrelated to the operation the user is performing.
Exact steps for others to reproduce the error
Based on the default startup .blend file.
Object > Apply > All Transforms
Created from confirmed issue on blender repo: blender/blender#122522
blender/blender#122522 (comment)
So confirmed.