gltf export fail; parent_bone not being ignored when Parent Type is "Object" #104583
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#104583
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-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3080 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 527.41
Blender Version
Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: rB55485cb379f7
Worked: (newest version of Blender that worked as expected)
Short description of error
When exporting gltf/glb there is an error if the Parent Type is Object but the parent_bone still has data on it.
Exact steps for others to reproduce the error
Attach geo to rig via armature modifier with the parent_bone set in background via any method. One method:
a) Parent geo to armature bone.
b) Change mind and decide you want to use skinning instead. So you parent with automatic weights and change Relations>ParentType to "Object".
c) bpy.data.objects["MyGeo"].parent_bone still has data
Now go to export a gltf and it will error as explained here:
https://github.com/KhronosGroup/glTF-Blender-IO/issues/1015
Unsure if this is a bug per se. However the expected behaviour is that now we have set Parent Type to Object either parent_bone should reset (Blender side) OR the gltf exporter should ignore parent_bone? (gltf addon side).
Quick fix is manual update
Or if in a studio pipeline is set this to empty string
bpy.data.objects["Cube"].parent_bone = ""
However as mentioned Parent Type is object so parent_bone should be ignored imo. And one wont always know if its empty or not.
Hello,
Confirmed on 3.4, but this bug is already fixed in 3.5 and newer.
See
bddbd5ed5f
Closing this ticket.