Skip to content

Commit

Permalink
Fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Thowaah committed Jul 27, 2023
1 parent 444403d commit 24c7cec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/scene/objects/SceneObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Lidar } from './sensors/Lidar.js';
class SceneObjects{
static loadFont(isBuilder, callback)
{
const path = './';
const path = window?.designerPath || './';
new FontLoader().load( path + 'fonts/helvetiker_regular.typeface.json', function ( response ) {
SceneObjects.font = response;
callback();
Expand Down
4 changes: 2 additions & 2 deletions js/scene/objects/props/Dummy.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ function loadModel(isBuilder, genre)

};

const path = './';
const path = window?.designerPath || './';

new MTLLoader()
.setPath( 'models/'+ genre +'02/' )
.setPath( path + 'models/'+ genre +'02/' )
.setRequestHeader({ "Content-Type" : "model/mtl"})
.load( genre +'02.mtl', function ( materials ) {

Expand Down

0 comments on commit 24c7cec

Please sign in to comment.