MCPcopy Index your code
hub / github.com/NikLever/ThreeJS-PathEditor / loadPath

Method loadPath

index.js:257–269  ·  view source on GitHub ↗
( name )

Source from the content-addressed store, hash-verified

255 }
256
257 loadPath( name ){
258 const data = this.store.read( name );
259 if (data){
260 this.nodes = data.nodes;
261 for (const [key, value] of Object.entries(data.config)) {
262 this.config[key] = value;
263 }
264 this.activePath = name;
265 this.store.activePath = name;
266 }
267 this.render();
268 this.gui.controllersRecursive().forEach( controller => controller.updateDisplay() );
269 }
270
271 deletePath(){
272 if ( this.activePath == null ) return;

Callers 4

constructorMethod · 0.95
deletePathMethod · 0.95
newPathMethod · 0.95
copyPathMethod · 0.95

Calls 2

renderMethod · 0.95
readMethod · 0.80

Tested by

no test coverage detected