fbx import fails in some cases with AttributeError when id_data.type is checked on None object #53065
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#53065
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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
Windows 10 Home, GeForce GTX 1050
Blender Version
2.78
Short description of error
the
blen_read_animations()
function insideimport_fbx.py
should change from this:to this:
as in some cases
id_data
does not exist andid_data.type
throwsAttributeError
.Exact steps for others to reproduce the error
import an .fbx with some
id_data==None
Changed status to: 'Open'
Added subscriber: @vasarhelyi
Added subscriber: @mont29
id_data
beingNone
should not happen… Please provide an FBX file demonstrating that issue. Also, please ensure issue is still valid in latest Blender -2.79 official release at least, even better if also checked with the latest build from our buildbot).Should not happen, but happens. I cannot attach .fbx, sorry, it cannot be public as it is not mine, but I can confirm that the bug is there in 2.79 as well (just downloaded latest stable release). .fbx is exported from 3D Studio max. This is the console window output:
Am sorry, but we need a valid case to reproduce the issue, otherwise we can do nothing. Blender is an open, public project, generating a file demonstrating the issue should not be a real problem, if you cannot share the real one.
Uploaded .fbx produced error for me both in 2.78 and 2.79.
material_anim_test_1_sphere_stage_cleanLine.FBX
Thanks, could reproduce the issue. Think it's actually similar (if not same) issue as in #41712, some apps sometimes generate animation data linked to (virtual, non-existent) root node of the FBX file (your fix was indeed solving the problem, but more like treating the symptoms rather than the cause. ;) )…
This issue was referenced by
d42d87dde8
This issue was referenced by
89285a88ab
Changed status from 'Open' to: 'Resolved'