[Exporter Bug] Exporting would cause some mesh desturction during export process after commit 35b27f8f #26
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kkbp-dev/KKBP_Importer#26
Loading…
Add table
Add a link
Reference in a new issue
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?
Before the 35b27f8f commit, everything works fine for this outfit. But after that things get dramaticallty messed up, like this:

The weird scene above can be seen during the middle of exporting process even in the newest release 5.0, but will return normal after exporting finished. And the model exported is messed up either.
I captured this image by using exact the 35b27f8f commit, where weird scene won't return normal even after exporting finished.
The weird scene you are seeing is actually expected behavior during export.
In order to restore correct bone information, the exporter temporarily sets the scale of all bones to 1 before exporting, and then restores them back inside Blender. Because of this, you may see a visually broken pose during the exporting process.
In later commits, this was mitigated by reloading the character after export, so the scene returns to normal once exporting finishes.
I’m not fully sure why the mesh behaves this way after the scale is restored, so this needs to be looked into further.
Fyi, previous version (Exporter 4.35 with Importer 8.0.2 on Blender 4.5.2) can export this dress correctly.
This behavior comes from a new step introduced in that commit: restoring bone scale, which was added to fix incorrect shape key.
Older versions didn’t do this, which worked for this outfit but caused issues elsewhere. The deformation after scale restoration still needs investigation.