Skip to content

Commit

Permalink
rotate 180 when vrm0
Browse files Browse the repository at this point in the history
  • Loading branch information
memelotsqui committed Jun 24, 2024
1 parent bbdd489 commit fd0b72d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pages/Optimizer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function Optimizer() {
}

const downloadAll = async () =>{

for( let i =0; i < vrmFiles.length ; i++){
try {
await loadVRMModel(vrmFiles[i]);
Expand All @@ -84,7 +85,13 @@ function Optimizer() {
}
const downloadZip = new ZipManager();
const parentScene = sceneElements.parent;

parentScene.remove(sceneElements);
const isVRM0 = characterManager.getCurrentOptimizerCharacterModel().data?.isVRM0;

if (isVRM0)parentScene.rotateY(3.14159);


const downloadLora = local["mergeOptions_download_lora"] == null ? true : local["mergeOptions_download_lora"];
if (downloadLora === true) {
const promises = manifest.loras.map(async (lora) => {
Expand All @@ -105,6 +112,7 @@ function Optimizer() {
if (downloadLora === true || downloadSprites === true) {
downloadZip.saveZip(saveName);
}
if (isVRM0)parentScene.rotateY(-3.14159);
parentScene.add(sceneElements);
};

Expand Down

0 comments on commit fd0b72d

Please sign in to comment.