Skip to content

Commit

Permalink
Merge pull request #136 from M3-org/fix-issues
Browse files Browse the repository at this point in the history
Fix issues
  • Loading branch information
madjin authored Mar 4, 2024
2 parents 4bba157 + 1574189 commit a7ead3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/library/create-texture-atlas.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,12 @@ export const createTextureAtlasBrowser = async ({ backColor, meshes, atlasSize,
switch (name) {
case 'diffuse':
clearColor = material.color || backColor;
if (material.uniforms?.litFactor)
if (material.uniforms?.litFactor){
multiplyColor = material.uniforms.litFactor.value;
}
else{
multiplyColor = material.color;
}
break;
case 'normal':
clearColor = new THREE.Color(0x8080ff);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Optimizer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function Optimizer() {
const name = getFileNameWithoutExtension(file.name);
setNameVRM (name);

setModel(characterManager.getCurrentCharacterModel());
setModel({...characterManager.getCurrentCharacterModel()});
}

const handleFilesDrop = async(files) => {
Expand Down

0 comments on commit a7ead3e

Please sign in to comment.