From af6afb3ee63be451847d04c8876347754ea3044d Mon Sep 17 00:00:00 2001 From: Rob Court Date: Wed, 20 Nov 2024 11:49:58 +0000 Subject: [PATCH] Revert "Fix for OBJloader" This reverts commit a360f3109bd46eaac7f2b41a42dfc92420cba76e. --- geppetto-ui/src/graph-visualization/Graph.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/geppetto-ui/src/graph-visualization/Graph.js b/geppetto-ui/src/graph-visualization/Graph.js index fbdcde993..d16af59d6 100644 --- a/geppetto-ui/src/graph-visualization/Graph.js +++ b/geppetto-ui/src/graph-visualization/Graph.js @@ -3,7 +3,6 @@ import ReactDOM from 'react-dom' import PropTypes from 'prop-types'; import * as d3 from 'd3-force-3d' import * as THREE from 'three' -import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader.js'; import ForceGraph2D from 'react-force-graph-2d'; import ForceGraph3D from 'react-force-graph-3d'; @@ -81,7 +80,7 @@ export default class GeppettoGraphVisualization extends Component { // add a obj file to the scene from url addToScene () { const { url, wireframe = true } = this.props - var loader = new OBJLoader(); + var loader = new THREE.OBJLoader(); // load a resource loader.load( // resource URL