Skip to content

Commit

Permalink
Fix for OBJloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie1977 authored Nov 19, 2024
1 parent bad6f80 commit a360f31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geppetto-ui/src/graph-visualization/Graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ 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';

Expand Down Expand Up @@ -80,7 +81,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 THREE.OBJLoader();
var loader = new OBJLoader();
// load a resource
loader.load(
// resource URL
Expand Down

0 comments on commit a360f31

Please sign in to comment.