Skip to content

Commit

Permalink
file.name, not filename (#28368)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycw committed May 13, 2024
1 parent cb1464c commit 032cb77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions editor/js/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,10 +543,10 @@ fileHandlers[ 'svg' ] = function ( editor, manager, reader, file ) {

//

const group = new THREE.Group();
group.name = filename;
group.scale.multiplyScalar( 0.1 );
group.scale.y *= - 1;
const group = new THREE.Group();
group.name = file.name;
group.scale.multiplyScalar( 0.1 );
group.scale.y *= - 1;

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

Expand Down

0 comments on commit 032cb77

Please sign in to comment.