WIP: FBX: Preventing import of duplicate shape keys #104939
No reviewers
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#104939
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ktdfly/blender-addons:fbx_prevent_dup_shape_keys"
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?
Duplicate connections cause the same shape keys to be imported many times, resulting in a very long processing time (could be hours) and high memory usage, which is not something we expect from FBX files. The unreported issue happens with FBX files from #104909 (attached here as well).
This PR contains the part separated from #104910, but both are required to import FBX from Unreal:
MaleFace.fbx
facemesh.fbx
Preventing import of duplicate shape keysto FBX: Preventing import of duplicate shape keysI think I've got to the bottom of what the issue is that causes all the duplicates.
There are a number of 1-many relations between FBX nodes that connect each
Mesh
to eachShape
that the FBX IO addon imports as a BlenderShapeKey
:1
Mesh
to manyBlendShape
s1
BlendShape
to manyBlendShapeChannel
s1
BlendShapeChannel
to manyShape
sWhat FBX appears to do, which Blender is not doing, is to ignore or overwrite all duplicates on the 'many' side of each of these relations.
This also explains how these Unreal exported FBX get away with having 2 Shapes assigned to each
BlendShapeChannel
while also having aFullWeights
array containing two elements where the second element is some unknown value. Both of the assignedShape
s are the sameShape
, so FBX only considers there to be oneShape
assigned to theBlendShapeChannel
, so only reads the first element of theFullWeights
array.I should be able to put a patch together that does this within a few days if you want.
FBX: Preventing import of duplicate shape keysto WIP: FBX: Preventing import of duplicate shape keysClosing due to !104954 fixing the issue
Pull request closed