Skip to content

Commit

Permalink
Updated examples builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 11, 2022
1 parent f833170 commit 1bb26d7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/js/exporters/GLTFExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@
const occlusion = material.aoMap?.image;
const roughness = material.roughnessMap?.image;
const metalness = material.metalnessMap?.image;
if ( occlusion === roughness && roughness === metalness ) return occlusion;
if ( occlusion === roughness && roughness === metalness ) return material.aoMap;

if ( occlusion || roughness || metalness ) {

Expand Down
16 changes: 16 additions & 0 deletions examples/js/loaders/3MFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,16 @@

}

if ( objectData.name ) {

for ( let i = 0; i < meshes.length; i ++ ) {

meshes[ i ].name = objectData.name;

}

}

return meshes;

}
Expand Down Expand Up @@ -1219,6 +1229,12 @@

}

if ( objectData.name ) {

objects[ objectData.id ].name = objectData.name;

}

}

function buildObjects( data3mf ) {
Expand Down

0 comments on commit 1bb26d7

Please sign in to comment.