MCPcopy
hub / github.com/mrdoob/texgen.js / updateControlParameter

Function updateControlParameter

editor/main.js:361–376  ·  view source on GitHub ↗
( e )

Source from the content-addressed store, hash-verified

359}
360
361function updateControlParameter( e ) {
362
363 if ( e.srcElement.id.indexOf(".") !== -1 ) {
364
365 var ids = e.srcElement.id.split(".");
366 currentGenerator.params[ ids[ 0 ] ][ parseInt( ids[ 1 ] ) ] = e.srcElement.value;
367
368 } else {
369
370 currentGenerator.params[ e.srcElement.id ] = e.srcElement.value;
371
372 }
373
374 texture.render();
375
376}
377
378function generatorSelected( id ) {
379

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected