diff --git a/display/graph.js b/display/graph.js index 32ba3da9fe8421c5566eecf72e268905999f3cee..cd791e51d9dc3059e85082bc349acb3719296808 100644 --- a/display/graph.js +++ b/display/graph.js @@ -452,15 +452,20 @@ class Graph { // Draw node circle image const textureLoader = new THREE.TextureLoader(); + textureLoader.setCrossOrigin("anonymous"); const imageAlpha = textureLoader.load( Config.PLUGIN_PATH + "datasets/images/alpha.png" ); let imageTexture = null; if ("image" in node) { - imageTexture = textureLoader.load( - Config.PLUGIN_PATH + "datasets/images/" + node.image - ); + if (node.image.startsWith("http")) { + imageTexture = textureLoader.load(node.image); + } else { + imageTexture = textureLoader.load( + Config.PLUGIN_PATH + "datasets/images/" + node.image + ); + } } else { imageTexture = textureLoader.load( Config.PLUGIN_PATH + "datasets/images/default.jpg"