[Exporter Bug] Exporting would cause some mesh desturction during export process after commit 35b27f8f #26

Open
opened 2026-01-26 20:09:07 +00:00 by Windy_D · 3 comments

Before the 35b27f8f commit, everything works fine for this outfit. But after that things get dramaticallty messed up, like this:
image

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.

Before [the 35b27f8f commit](https://gitgoon.dev/kkbp-dev/KKBP_Exporter/commit/35b27f8f5da79770a716d25f1a41bdd5e8fc0e8f), everything works fine for this outfit. But after that things get dramaticallty messed up, like this: ![image](/attachments/c57674dc-10ce-45eb-bdd6-e2dde03f8e3f) 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.
1.9 MiB
1.2 MiB
Contributor

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.

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.
Author

Fyi, previous version (Exporter 4.35 with Importer 8.0.2 on Blender 4.5.2) can export this dress correctly.

Fyi, previous version (Exporter 4.35 with Importer 8.0.2 on Blender 4.5.2) can export this dress correctly.
Contributor

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kkbp-dev/KKBP_Importer#26
No description provided.