Fix #104714: Missing shape keys in FBX export when original mesh data cannot be used #104890
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#104890
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "Mysteryem/blender-addons:fbx_fix_triangulate_removing_shapes"
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?
Enabling the Triangulate Faces option of the exporter or exporting mesh
Objects with Object-linked materials would remove the shape keys of the
exported Meshes, even without there being modifiers to apply.
This patch fixes the shape keys being removed, by using
Mesh.copy()
instead of
BlendDataMeshes.new_from_object()
which currently alwaysremoves shape keys and is unlikely to be changed to keep the shape keys
of non-evaluated meshes any time soon.
For the other cases of converting non-mesh Objects to meshes or
converting evaluated Objects to meshes when applying modifiers,
BlendDataMeshes.new_from_object()
is still used.The code has been reorganised to make the separate cases of using
Mesh.copy()
andBlendDataMeshes.new_from_object()
clearer than ifthey were added directly into the existing code.
Aside from the lack of shape keys, it's possible there could be some
other differences between meshes copied with
Mesh.copy()
andBlendDataMeshes.new_from_object()
, but I have not noticed any.The general reorganization of the code, and changes described in the comments and commit message, make total sense to me. I will trust you for the code details. ;)